Quote:
Originally Posted by ericshliao
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
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").