Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
slashmais is currently offline  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 #16981 is a reply to message #16979] Thu, 24 July 2008 13:27 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Check if
Build - Output mode... - Debug & Release
are switched to Use shared libs, not All static.
Re: Linker error with latest svn version (deb) [message #16986 is a reply to message #16979] Thu, 24 July 2008 16:16 Go to previous message
bytefield is currently offline  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.
Rolling Eyes


cdabbd745f1234c2751ee1f932d1dd75
Previous Topic: Newbie can't compile
Next Topic: "and" and "or" are defines under Linux
Goto Forum:
  


Current Time: Thu Apr 18 21:56:15 CEST 2024

Total time taken to generate the page: 0.02447 seconds