Brightman wrote:
>  a compile problem .
> the program can't find "GRE_GetGREPathWithProperties" in
> "libxpcomglue.a"
> 
> c++ -g -o test -I ../mozilla/dist/include -DDEUBG -DXPCOM_GLUE  -I../
> mozilla/dist/sdk/include -L../mozilla/dist/bin -Wl,-rpath-link,../
> mozilla/dist/bin/ -L../mozilla/dist/sdk/lib ./libxpcomglue.a -
> lembed_base_s -fno-rtti -fno-exceptions   test.cpp
> /tmp/ccumJrf0.o(.text+0x3f): In function `main':
> /home/mozilla/test/test.cpp:19: undefined reference to
> `GRE_GetGREPathWithProperties'
> /tmp/ccumJrf0.o(.text+0x79):/home/mozilla/test/test.cpp:24: undefined
> reference to `XPCOMGlueStartup'
> collect2: ld returned 1 exit status

Your compile command is incorrect. You must list test.cpp before 
libxpcomglue.a, because ordering is important for the linker: unresolved 
symbols are only searched in libraries listed later in the command line.

--BDS
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to