Author Topic: Some undefined references...  (Read 3698 times)

Flesym

  • Guest
Some undefined references...
« on: December 24, 2005, 01:33:20 pm »
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
-----------

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Some undefined references...
« Reply #1 on: December 24, 2005, 01:40:28 pm »
Take a look at this topic: http://forums.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.codeblocks.org/index.php?topic=1696.msg12989#msg12989
« Last Edit: December 24, 2005, 02:08:23 pm by Der Meister »
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

  • Guest
Re: Some undefined references...
« Reply #2 on: December 24, 2005, 02:14:21 pm »
Thank you, that helped!

Bye
    -flesym