Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Linker error with latest svn version (deb)
Linker error with latest svn version (deb) [message #16979] |
Thu, 24 July 2008 12:21  |
slashmais
Messages: 20 Registered: January 2007 Location: south africa
|
Promising Member |
|
|
I'm using 'upp-svn_SVN.318_i386.deb'.
When I build the 'QuickTabs' sample package I get:
.
.
.
----- QuickTabs ( GUI MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (9 / 9)
QuickTabs.cpp
plugin\png: 3 file(s) built in (0:02.38), 794 msecs / file, duration = 6238 msecs, parallelization 100%
QuickTabs: 1 file(s) built in (0:03.19), 3197 msecs / file, duration = 4434 msecs, parallelization 39%
Linking...
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
There were errors. (1:16.56)
-----------------------------------------
I've no idea what to do about this.
|
|
|
|
Re: Linker error with latest svn version (deb) [message #16986 is a reply to message #16979] |
Thu, 24 July 2008 16:16  |
bytefield
Messages: 210 Registered: December 2007
|
Experienced Member |
|
|
Hi, the problem is that you build QuickTabs which is a library, not a sample package and because of that QuickTabs doesn't have GUI_APP_MAIN defined, that's why you get an error about missing main function, instead you should build QuickTabsTest which implement a sample on how to use QuickTabs package.
[off topic]
Now a message for programmers who maintain packages from bazaar:
please don't set GUI flag for you packages which contain library files because that the library package is showed in bazaar Assembly instead use GUI flag just for examples which use that library.
Practical example...
If QuickTabs have GUI flag then it get showed in bazaar assembly else it doesn't. The GUI flag should belong to package which use QuickTabs, in our example it is QuickTabsTest.
If a packages doesn't have any flag it get showed only when you check "All packages" option and i believe this is the right behavior. Enlight me if I'm saying something wrong.
cdabbd745f1234c2751ee1f932d1dd75
|
|
|
Goto Forum:
Current Time: Mon Apr 28 23:09:19 CEST 2025
Total time taken to generate the page: 0.03345 seconds
|