I have several object files (.o) ,without source code, for a vxWorks project.
How can I test if they are OS independent or not?
I try to use them for a Linux project.
They should include openGL stuff.
edit:
I have a Graphic board with a S3 on it.
There is a driver available for it, but just for vxWorks.
I found a startup script for vxWorks. In this several Objekt files will be loaded.
e.g this
ld 1,0,"lib/libGL.o"
ld 1,0,"lib/libGLU.o"
And I think they are independent from the OS.But I’m not sure.
Because I try to use this board with Linux.
Link them against a
main()function. If you get no errors, then they don’t use OS specific functions.[EDIT] Object files are linked, not included. You need to write a
main()function which calls code in the.ofiles (check the OpenGL documentation for the names).Now you can compile this with: