2025-07-30 08:45 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001876Spring engineGeneralpublic2010-03-26 00:12
ReporterSirMaverick 
Assigned ToAuswaschbar 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
Product Version0.81.2 
Target VersionFixed in Version 
Summary0001876: cannot link DemoTool
DescriptionForgot to link boost::program_options?
Additional Information[...]
DemoTool.cpp:(.text+0xb3d): undefined reference to `boost::program_options::variables_map::variables_map()'
DemoTool.cpp:(.text+0xb42): undefined reference to `boost::program_options::options_description::m_default_line_length'
DemoTool.cpp:(.text+0xb54): undefined reference to `boost::program_options::options_description::options_description(unsigned int)'
DemoTool.cpp:(.text+0xb73): undefined reference to `boost::program_options::options_description::add_options()'
DemoTool.cpp:(.text+0xb98): undefined reference to `boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)'
[...]
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004789

SirMaverick (reporter)

Adding

FIND_PACKAGE(Boost 1.35.0 COMPONENTS program_options REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})

to CMakeLists.txt file seems to fix it.

~0004790

Auswaschbar (reporter)

Works in master. Probably forgotten to commit to 0.81.2-branch.

~0004792

SirMaverick (reporter)

mkdir build
cd build
cmake ..
make demotool

Results in same error with master.

~0004794

Auswaschbar (reporter)

When running cmake, ".." is the path to the spring source root, right?

~0004795

SirMaverick (reporter)

Now it is and it works. In both branches.
+Notes

-Issue History
Date Modified Username Field Change
2010-03-24 16:09 SirMaverick New Issue
2010-03-24 16:11 SirMaverick Note Added: 0004789
2010-03-24 22:40 Auswaschbar Note Added: 0004790
2010-03-24 23:50 SirMaverick Note Added: 0004792
2010-03-25 10:12 Auswaschbar Note Added: 0004794
2010-03-25 18:21 SirMaverick Note Added: 0004795
2010-03-26 00:12 Auswaschbar Status new => resolved
2010-03-26 00:12 Auswaschbar Resolution open => no change required
2010-03-26 00:12 Auswaschbar Assigned To => Auswaschbar
+Issue History