View Issue Details

IDProjectCategoryView StatusLast Update
0002463Spring engineGeneralpublic2015-09-10 19:11
Reporterabma Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0002463: when doing out-of-source build of spring, compile fails with "undefined reference to `_filesystem'"
Descriptionwhen doing an additional cmake [...] . everything works as excepted


Linking CXX shared module ../../unitsync.dll
CMakeFiles/unitsync.dir/__/__/rts/System/Platform/Misc.cpp.obj:/root/test/spring/rts/System/Platform/Misc.cpp:130: undefined reference to `_filesystem'
CMakeFiles/unitsync.dir/__/__/rts/System/Platform/Misc.cpp.obj:/root/test/spring/rts/System/Platform/Misc.cpp:130: undefined reference to `FileSystem::GetDirectory(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/unitsync.dir/__/__/rts/System/Platform/Misc.cpp.obj:/root/test/spring/rts/System/Platform/Misc.cpp:225: undefined reference to `_filesystem'
CMakeFiles/unitsync.dir/__/__/rts/System/Platform/Misc.cpp.obj:/root/test/spring/rts/System/Platform/Misc.cpp:225: undefined reference to `FileSystem::GetDirectory(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/unitsync.dir/__/__/rts/System/LogOutput.cpp.obj:/root/test/spring/rts/System/LogOutput.cpp:162: undefined reference to `FileSystemHandler::GetCwd()'
CMakeFiles/unitsync.dir/__/__/rts/System/LogOutput.cpp.obj: In function `operator+<char, std::char_traits<char>, std::allocator<char> >':
/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/bits/basic_string.h:2219: undefined reference to `FileSystemHandler::native_path_separator'

Additional Informationhttp://pastebin.com/nJPm9JqV

looks like MakeGlobal(sources_engine_System_FileSystem) doesn't work the first time
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

hoijui

2011-06-09 23:24

reporter   ~0006716

A possible solution might be, defining the source-file lists in macros/functions,
and calling them wherever they are needed. This way we would prevent order-of-init problems like this one, and would not have to use global/cache vars either, as the vars can be defined in the local scope (therefore, we probably have to use macros, not functions, as the later introduce a child-scope).

abma

2015-09-10 19:11

administrator   ~0015145

MakeGlobal macro was changed, now it doesn't use cache. also i didn't see this bug for a long time

-> i assume its fixed

Issue History

Date Modified Username Field Change
2011-06-09 23:16 abma New Issue
2011-06-09 23:24 hoijui Note Added: 0006716
2011-06-09 23:39 abma Status new => confirmed
2011-06-09 23:39 abma Category Buildbot => General
2011-06-09 23:40 abma Summary when doing outsource build of spring, compile fails with "undefined reference to `_filesystem'" => when doing out-of-source build of spring, compile fails with "undefined reference to `_filesystem'"
2015-09-10 19:11 abma Note Added: 0015145
2015-09-10 19:11 abma Status confirmed => closed
2015-09-10 19:11 abma Resolution open => fixed