A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Esharc » Wed Jan 11, 2017 5:55 am
Good morning,
When using the demosSandBox project, everything builds and runs fine as is, but when adding the flag "_NEWTON_USE_DOUBLE" in the preprocessor definitions of the core project then I get the following errors:
" error C2664: '__m128 _mm_loadu_ps(const float *)': cannot convert argument 1 from 'const dgFloat32 *const ' to 'const float *' "
and
" error C2664: 'void _mm_storeu_ps(float *,__m128)': cannot convert argument 1 from 'dgFloat32 *const ' to 'float *' ".
Both errors happen in the dgVector.h file
Is there a work around that I can get this to work?
-
Esharc
-
- Posts: 120
- Joined: Tue Jan 10, 2017 5:23 am
- Location: South Africa
by Julio Jerez » Wed Jan 11, 2017 4:23 pm
I though I have that fixed, but you are right it fail to build I am fixing now.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Julio Jerez » Wed Jan 11, 2017 7:32 pm
please sync again, it should be fine now.
you have four possible modes that you can define in you command line.
DG_SCALAR_VECTOR_CLASS and _NEWTON_USE_DOUBLE
the define name are self explanatory.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Esharc » Thu Jan 12, 2017 1:05 am
Thanks for the quick response.
I have synced again, and when building with the _NEWTON_USE_DOUBLE flag I get the following error:
" error C2039: 'm_type': is not a member of 'dgBigVector' "
in dgVector.h line 1466.
When I comment out that section, I get the error:
" error C2664: 'dgBigVector::dgBigVector(dgBigVector &&)': cannot convert argument 1 from 'const dgFloat32 *' to 'const dgFloat64' "
in dgIntersections.h line 340.
-
Esharc
-
- Posts: 120
- Joined: Tue Jan 10, 2017 5:23 am
- Location: South Africa
by Julio Jerez » Thu Jan 12, 2017 5:29 pm
Haaa this is given me dejavuu, I swear if fixed this and tested more than once.
you are right there was still a compiler bug there.
I think I have it fixed now, I build all possible configurations and they all worked.
Please try syncing again, and this time knock on wood.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Esharc » Fri Jan 13, 2017 1:46 am
Thank you, everything is up and running again.
Seems knocking on wood helped
-
Esharc
-
- Posts: 120
- Joined: Tue Jan 10, 2017 5:23 am
- Location: South Africa
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 22 guests