Re: [fpc-pascal] Linking using "external" on Mac OS X

2007-03-28 Thread Daniƫl Mantione
Op Wed, 28 Mar 2007, schreef Jonas Maebe: > That's correct. I did this in the beginning because almost many library names > used in the sources we distribute are wrong for Mac OS X, and didn't feel like > cleaning those up everywhere. I never got around to actually changing all > those names int

Re: [fpc-pascal] Linking using "external" on Mac OS X

2007-03-28 Thread Michalis Kamburelis
Thank you Jonas for detailed answer. I submitted related patch to gtkglext units at [http://www.freepascal.org/mantis/view.php?id=8585]. Michalis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] Linking using "external" on Mac OS X

2007-03-28 Thread Jonas Maebe
On 28 mrt 2007, at 22:09, Jonas Maebe wrote: e.g. in Mac OS X < 10.4, sem_init/sem_destroy both return ENOSYS (function not implemented) Make that <= 10.4. I don't know about 10.5. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Linking using "external" on Mac OS X

2007-03-28 Thread Jonas Maebe
On 28 mrt 2007, at 21:46, Michalis Kamburelis wrote: I experience problems linking using "external" keyword on Mac OS X. Program with declaration like procedure glVertex3f(x, y, z: Single); cdecl; external 'GL' name 'glVertex3f'; fails to compile with $ fpc external_decl.pas /usr/bin/ld

[fpc-pascal] Linking using "external" on Mac OS X

2007-03-28 Thread Michalis Kamburelis
Hi I experience problems linking using "external" keyword on Mac OS X. Program with declaration like procedure glVertex3f(x, y, z: Single); cdecl; external 'GL' name 'glVertex3f'; fails to compile with $ fpc external_decl.pas /usr/bin/ld: Undefined symbols: _glVertex3f Error: Error while