Hi all.
I have an idl that I'm using with xpidl to spit out some C++ code for
an XPCOM component. I had all this working under Linux, but I'm
trying to compile it under OS X. I have xpidl running fine under OS
X, but when I go to compile my resulting C++ code, it seems I'm
missing some system header files. Any pointers would be much
appreciated from others doing XPCOM work on OS X...
$ make
g++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -Wshadow
-pedantic -Wno-long-long -pthread -g -DNS_DEBUG
-I../../dist/sdk/xpcom/include -I_xpidlgen -I../../nsprpub/pr/include
-I../../dist/sdk/nspr/include -I../../dist/include/xpcom -c -o
mozTemperature.o mozTemperature.cpp
g++: unrecognized option `-pthread'
cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not
for C++
In file included from ../../dist/include/xpcom/nscore.h:51,
from ../../dist/include/xpcom/nsrootidl.h:11,
from ../../dist/include/xpcom/nsISupports.h:10,
from mozITemperature.h:10,
from mozTemperature.h:1,
from mozTemperature.cpp:1:
../../nsprpub/pr/include/prtypes.h:58:22: prcpucfg.h: No such file or
directory
../../nsprpub/pr/include/prtypes.h:283:2: #error No suitable type for
PRInt8/PRUint8
../../nsprpub/pr/include/prtypes.h:308:2: #error No suitable type for
PRInt16/PRUint16
../../nsprpub/pr/include/prtypes.h:340:2: #error No suitable type for
PRInt32/PRUint32
In file included from ../../dist/include/xpcom/nscore.h:51,
from ../../dist/include/xpcom/nsrootidl.h:11,
from ../../dist/include/xpcom/nsISupports.h:10,
from mozITemperature.h:10,
from mozTemperature.h:1,
from mozTemperature.cpp:1:
../../nsprpub/pr/include/prtypes.h:384: error: parse error before `,'
token
etc, etc....
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom