Build Error

30 views
Skip to first unread message

Kirill Rumiantsev

unread,
Dec 17, 2022, 7:11:49 AM12/17/22
to ProjectChrono
Hi,

I am trying to build Chrono from the source
Windows 11
with C:\msys64\ucrt64\bin\g++.exe compiler

I am getting the following errors:

[build] C:/Users/fundu/chrono/src/chrono/core/ChCoordsys.cpp:17:32: error: external linkage required for symbol 'chrono::CSYSNULL' because of 'dllexport' attribute
[build]    17 | ChApi const ChCoordsys<double> CSYSNULL(ChVector<>(0, 0, 0), ChQuaternion<>(0, 0, 0, 0));
[build]       |                                ^~~~~~~~
[build] C:/Users/fundu/chrono/src/chrono/core/ChCoordsys.cpp:18:32: error: external linkage required for symbol 'chrono::CSYSNORM' because of 'dllexport' attribute
[build]    18 | ChApi const ChCoordsys<double> CSYSNORM(ChVector<>(0, 0, 0), ChQuaternion<>(1, 0, 0, 0));
[build]       |                                ^~~~~~~~

Thank you, Kirill. 

Radu Serban

unread,
Dec 17, 2022, 9:22:08 AM12/17/22
to ProjectChrono
Kirill, thanks for pointing this out. I pushed a commit that I assume will fix this issue. Visual Studio did not flag this as a problem (also why this slipped through the cracks until now).

Please let me know if the latest code in the 'main' branch builds past this point and also if you see similar issues in other Chrono modules (I only fixed the problem in the core module).

--Radu




From: projec...@googlegroups.com <projec...@googlegroups.com> on behalf of Kirill Rumiantsev <fund...@gmail.com>
Sent: Saturday, December 17, 2022, 2:11 PM
To: ProjectChrono <projec...@googlegroups.com>
Subject: [chrono] Build Error
--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/0b730598-da9b-4892-a5d7-66543c2c86c1n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages