Author Topic: Windows compilation errors with Visual Studio 14 2015 Win64  (Read 1205 times)

Josep Maria

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 50
Windows compilation errors with Visual Studio 14 2015 Win64
« on: January 31, 2017, 12:39:34 AM »
I attach the compilation errors I get when the DEM application and the SwimingDEM application are ON.

There are also some other warnings from the PfemFluidDynamics application and other things.

I hope it will be easy to solve.

Kind Regards

Josep Maria

pooyan

  • Global Moderator
  • Newbie
  • *****
  • Posts: 33
Re: Windows compilation errors with Visual Studio 14 2015 Win64
« Reply #1 on: January 31, 2017, 09:24:31 AM »
The problem comes from the fact that typename keyword outside of a template class is an error for VS but GCC and CLang neglect it. So the solution is to remove the "typename" keywords giving problem. Meanwhile I have wrote to Miguel Angel to inform him about this issue to avoid it in the future.

Bests,

Miguel Angel Celigueta

  • Administrator
  • Newbie
  • *****
  • Posts: 38
Re: Windows compilation errors with Visual Studio 14 2015 Win64
« Reply #2 on: January 31, 2017, 10:04:03 AM »
Hi,
I just removed all typenames from those files. It should be compiling well now.
Please confirm it, because in my Windows 10, 64 bits (VS 2015) these errors were not showing up.
Thanks,
Miguel Ángel

Josep Maria

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 50
Re: Windows compilation errors with Visual Studio 14 2015 Win64
« Reply #3 on: February 01, 2017, 10:57:52 PM »
Hello,

 Thank you for your prompt solution of the compilation errors. Now they do not appear anymore.
Other ones are still there breaking the compilation.

   See attached file. I think they have a direct relationship with topic:  http://kratos-wiki.cimne.upc.edu/forum/index.php?topic=116.0

Kind Regards

Josep Maria

Miguel Angel Celigueta

  • Administrator
  • Newbie
  • *****
  • Posts: 38
Re: Windows compilation errors with Visual Studio 14 2015 Win64
« Reply #4 on: February 02, 2017, 12:13:49 AM »
I just fixed two of the three errors. The third one: error C2044: instrucción continue no válida (illegal continue)
makes no sense to me, as this 'continue' is indeed inside a 'for' loop...
Regards,
Miguel Ángel

Josep Maria

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 50
Re: Windows compilation errors with Visual Studio 14 2015 Win64
« Reply #5 on: February 02, 2017, 10:10:33 AM »
Miquel Angel,

  I think that in parallel loops using OpenMP the continue statment has some restrictions if you want it to be compiled as parallel.
But it seems it only happens in Windows.

Regards

Josep Maria