Open GoogleCodeExporter opened 9 years ago
I am getting linker issue in code::blocks
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x11f)||undefined reference to
`__imp___ZN6cURLpp7CleanupC1Ev'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x131)||undefined reference to
`__imp___ZN6cURLpp4EasyC1Ev'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x1bd)||undefined reference to
`cURLpp::Easy::setOpt(cURLpp::OptionBase*)'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x1f3)||undefined reference to
`operator<<(std::ostream&, cURLpp::Easy const&)'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x263)||undefined reference to
`operator<<(std::ostream&, cURLpp::OptionTrait<std::string, (CURLoption)10002>
const&)'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x2bd)||undefined reference to
`cURLpp::Easy::~Easy()'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x2cd)||undefined reference to
`__imp___ZN6cURLpp7CleanupD1Ev'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x43f)||undefined reference to
`cURLpp::Easy::~Easy()'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text+0x44c)||undefined reference to
`__imp___ZN6cURLpp7CleanupD1Ev'|
]+0x10)||undefined reference to
`cURLpp::OptionBase::operator<(cURLpp::OptionBase
const&) const'|
]+0x10)||undefined reference to
`cURLpp::OptionBase::operator<(cURLpp::OptionBase
const&) const'|
::~Option()]+0x7d)||undefined reference to `__imp___ZN6cURLpp10OptionBaseD2Ev'|
::~Option()]+0xf4)||undefined reference to `__imp___ZN6cURLpp10OptionBaseD2Ev'|
::~Option()]+0x7d)||undefined reference to `__imp___ZN6cURLpp10OptionBaseD2Ev'|
::~Option()]+0xe9)||undefined reference to `__imp___ZN6cURLpp10OptionBaseD2Ev'|
::~Option()]+0x7d)||undefined reference to `__imp___ZN6cURLpp10OptionBaseD2Ev'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text$_ZN6cURLpp11UnsetOptionD1Ev[cURL
pp::U
nsetOption::~UnsetOption()]+0x14)||undefined reference to
`__imp___ZN6cURLpp12RuntimeErrorD2Ev'|
obj\Release\downloads\curlpp\curlpp-
0.7.2\examples\example22.o:example22.cpp:(.text$_ZN6cURLpp11UnsetOptionD0Ev[cURL
pp::U
nsetOption::~UnsetOption()]+0x15)||undefined reference to
`__imp___ZN6cURLpp12RuntimeErrorD2Ev'|
::getValue() const]+0x84)||undefined reference to
`__imp___ZN6cURLpp11UnsetOptionC1ERKSs'|
)]+0x53)||undefined reference to `__imp___ZN6cURLpp10OptionBaseC2E10CURLoption'|
)]+0xb7)||undefined reference to `__imp___ZN6cURLpp10OptionBaseD2Ev'|
)]+0x128)||undefined reference to `__imp___ZN6cURLpp11UnsetOptionC1EPKc'|
)]+0x2f)||undefined reference to
`__imp___ZN6cURLpp20libcurlRuntimeAssertEPKc8CURLcode'|
) const]+0x84)||undefined reference to `__imp___ZN6cURLpp11UnsetOptionC1ERKSs'|
||=== Build finished: 24 errors, 0 warnings ===|
Original comment by cinud...@gmail.com
on 22 Oct 2009 at 5:51
My compile was using MinGW with GCC 4.4.1 from here -
http://www.tdragon.net/recentgcc/
Original comment by dwmcqu...@gmail.com
on 22 Oct 2009 at 2:25
I think it is a related error - some of the function declarations are being
ignored
due to the dllimport issue - do you have your CodeBlocks project file?
Original comment by dwmcqu...@gmail.com
on 22 Oct 2009 at 2:28
Original issue reported on code.google.com by
dwmcqu...@gmail.com
on 22 Oct 2009 at 2:33Attachments: