Thank you, that's a big help. I'll set up a makefile to automate the fixed linking process; no problem.
--- Adriaan van Os gpc@microbizz.nl wrote:
Frank D. Engel, Jr. wrote:
Does anyone know how I can link a GPC program to a framework (specifically, the OpenGL framework) under MacOS X? I tried {$L OpenGL}, etc., but library syntax does not work for frameworks...
GPC doesn't know about Mac OS X frameworks, but you can pass the needed information directly to the Apple "ld" linker with the -Wl option, e.g.
gpc --automake -Wl,-framework,OpenGL -o myprogram myprogram.pas gpc --automake -Wl,-framework,Carbon -o myprogram myprogram.pas gpc --automake -Wl,-framework,Carbon,-framework,OpenGL -o myprogram myprogram.pas
See <www.microbizz.nl/gpcfaq.html>
GPC does not seem to use the OS X-provided 'ld' program, either,
since
adding -Xlinker "-framework OpenGL" to the GPC command line doesn't work (GPC's 'ld' complains about the unknown command line
argument...
should it be in quotes like that? is that doing it?)
GPC does use "ld" on Mac OS X, however you must use -Wl instead of -Xlinker.
Dominique Louis Dominique@SavageSoftware.com.au is working on OpenGL interfaces for GPC and also on the OpenGL and SDL ports to Mac OS X. See previous messages on this list.
Regards,
Adriaan van Os
===== ======= Frank D. Engel, Jr.
Modify the equilibrium of the vertically-oriented particle decelerator to result in the reestablishment of its resistance to counterproductive atmospheric penetration.
__________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com