linker error
"Felix Ang" <[email protected]> Sat, 20 Dec 2003 09:51:57 +0700
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <000001c3c6a4$3e666520$0100007f@localhost> |
Dear all, Still about [linker error] undefined reference.. I already have that -lcgicc (Thanks [email protected]) parameter but still experiencing error. Is there something wrong with my build ? I import MS Visual C++ 6 project files to BloodShed Dev C++ 4.9.8.5 with GCC 3.2 and build flawlessly. There's also this parameter with the compiler: -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DCGICC_EXPORTS I don't understand it. Anyway I make 2 build. with the parameter and without the parameter, the result is the same. My code is : #include <iostream> #include "cgicc/HTTPHTMLHeader.h" using namespace cgicc; using namespace std; main( int argc , char** argv ) { cout << HTTPHTMLHeader() << endl << endl ; cout << "<HTML><HEAD><TITLE>Test</TITLE></HEAD><BODY>Hello world</BODY></HTML>" ; return(0); } The err message using libcgicc.a build with the compiler parameter above: F:\Felix\Dev-Cpp projects\CGI\test.o(.text+0x91) [Warning] In function `main': [Linker error] undefined reference to `_imp___ZN5cgicclsERSoRKNS_11MStreamableE' [Linker error] undefined reference to `_GLOBAL__I_main' [Linker error] undefined reference to `_GLOBAL__D_main' [Linker error] undefined reference to `_GLOBAL__I__ZN5cgicc14HTTPHTMLHeaderC2Ev' [Linker error] undefined reference to `_GLOBAL__D__ZN5cgicc14HTTPHTMLHeaderC2Ev' F:\Felix\Dev-Cpp projects\CGI\cgicc\libcgicc.a(HTTPContentHeader.o)(.ctors+0x0) [Warning] In function `ZN9__gnu_cxx17__normal_iteratorIPKN5cgicc10HTTPCookieESt6vectorIS2_SaIS 2_EEEppEv': [Linker error] undefined reference to `_GLOBAL__I__ZN5cgicc17HTTPContentHeaderC2ERKSs' [Linker error] undefined reference to `_GLOBAL__D__ZN5cgicc17HTTPContentHeaderC2ERKSs' F:\Felix\Dev-Cpp projects\CGI\Makefile.win [Build Error] [Test.exe] Error 1 Please Help.. Thanks, Felix Ang _______________________________________________ help-cgicc mailing list [email protected] http://mail.gnu.org/mailman/listinfo/help-cgicc