View Single Post
Old 09-13-2009, 08:51 AM   #142
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by ericshliao View Post
For "if((Epd=EpdInit(NULL))=NULL)", sometimes I got l-value error, and sometimes the compilation just passed. It's strange.
Certainly strange. Ok, on to other matters...

Quote:
Originally Posted by ericshliao View Post
When I compile xepdmgrclient.c, I got:
Code:
gcc -o xepdmgrclient xepdmgrclient.c -lX11 
/scratchbox/compilers/oe/bin/../lib/gcc/arm-linux/3.4.4/../../../../arm-linux/lib/crt1.o(.text+0x30): In function `_start':
init.c: undefined reference to `main'
collect2: ld returned 1 exit status
That is because xepdmgrclient.c doesn't have a main() function, and you are trying to get a program (xepdmgrclient.c is only a library, you have to link it with your program). If you want to test the library compile xepdmgrtest.cpp ("make xepdmgrtest").
Antartica is offline   Reply With Quote