News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Some undefined references...

Started by Flesym, December 24, 2005, 01:33:20 PM

Previous topic - Next topic

Flesym

Hi,
I get several errors while compiling C::B. What is wrong?

Thanks and a merry Christmas to all of you!!
    -flesym



i'm using:
-------
C::B version: latest svn (revision 1584)
Ubuntu (breezy)
wxWidgets 2.6.1.1.1
____



Here the Errors:
-------
app.o: In function `CodeBlocksApp::BatchJob()':
/usr/local/src/codeblocks/trunk/src/src/app.cpp:519: undefined reference to `APP_NAME'
app.o: In function `c_str':
/usr/include/wx-2.6/wx/string.h:477: undefined reference to `APP_NAME'
dlgabout.o: In function `dlgAbout':
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:61: undefined reference to `APP_BUILD_TIMESTAMP'
dlgabout.o: In function `GetStringData':
/usr/include/wx-2.6/wx/string.h:258: undefined reference to `APP_NAME'
/usr/include/wx-2.6/wx/string.h:258: undefined reference to `APP_VERSION'
/usr/include/wx-2.6/wx/string.h:258: undefined reference to `APP_NAME'
dlgabout.o: In function `dlgAbout':
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:90: undefined reference to `APP_NAME'
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:91: undefined reference to `APP_ACTUAL_VERSION_VERB'
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:93: undefined reference to `APP_CONTACT_EMAIL'
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:94: undefined reference to `APP_URL'
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:61: undefined reference to `APP_BUILD_TIMESTAMP'
dlgabout.o: In function `GetStringData':
/usr/include/wx-2.6/wx/string.h:258: undefined reference to `APP_NAME'
/usr/include/wx-2.6/wx/string.h:258: undefined reference to `APP_VERSION'
/usr/include/wx-2.6/wx/string.h:258: undefined reference to `APP_NAME'
dlgabout.o: In function `dlgAbout':
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:90: undefined reference to `APP_NAME'
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:91: undefined reference to `APP_ACTUAL_VERSION_VERB'
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:93: undefined reference to `APP_CONTACT_EMAIL'
/usr/local/src/codeblocks/trunk/src/src/dlgabout.cpp:94: undefined reference to `APP_URL'
main.o: In function `MainFrame::DoUpdateStatusBar()':
/usr/local/src/codeblocks/trunk/src/src/main.cpp:1045: undefined reference to `APP_NAME'
main.o: In function `operator=':
/usr/include/wx-2.6/wx/string.h:610: undefined reference to `APP_NAME'
/usr/include/wx-2.6/wx/string.h:610: undefined reference to `APP_VERSION'
main.o: In function `c_str':
/usr/include/wx-2.6/wx/string.h:477: undefined reference to `APP_NAME'
/usr/include/wx-2.6/wx/string.h:477: undefined reference to `APP_VERSION'
main.o: In function `MainFrame':
/usr/local/src/codeblocks/trunk/src/src/main.cpp:425: undefined reference to `APP_NAME'
/usr/local/src/codeblocks/trunk/src/src/main.cpp:428: undefined reference to `APP_NAME'
/usr/local/src/codeblocks/trunk/src/src/main.cpp:428: undefined reference to `APP_VERSION'
/usr/local/src/codeblocks/trunk/src/src/main.cpp:425: undefined reference to `APP_NAME'
/usr/local/src/codeblocks/trunk/src/src/main.cpp:428: undefined reference to `APP_NAME'
/usr/local/src/codeblocks/trunk/src/src/main.cpp:428: undefined reference to `APP_VERSION'
startherepage.o: In function `StartHerePage':
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:104: undefined reference to `APP_WXANSI_UNICODE'
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:104: undefined reference to `APP_PLATFORM'
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:104: undefined reference to `APP_ACTUAL_VERSION_VERB'
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:114: undefined reference to `APP_ACTUAL_VERSION'
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:104: undefined reference to `APP_WXANSI_UNICODE'
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:104: undefined reference to `APP_PLATFORM'
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:104: undefined reference to `APP_ACTUAL_VERSION_VERB'
/usr/local/src/codeblocks/trunk/src/src/startherepage.cpp:114: undefined reference to `APP_ACTUAL_VERSION'
collect2: ld returned 1 exit status
-----------

Der Meister

#1
Take a look at this topic: http://forums.next.codeblocks.org/index.php?topic=1735.0

Edit: For revision 1584 you will also need another patch to get the code-completion-plugin working:
http://forums.next.codeblocks.org/index.php?topic=1696.msg12989#msg12989
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Flesym

Thank you, that helped!

Bye
    -flesym