Download the Mac OS X Pascal interfaces http://www.microbizz.nl/GPCInterfacesC2.tar.gz and include GPCMacOSAll.pas (or separate smaller units) with the USES clause. Now, link to the Carbon framework with:
gpc -s -o testcarb testcarb.pas --automake -Wl,-framework,Carbon --unit-path=/Developer/Pascal/GPCPInterfaces -I/Developer/Pascal/GPCPInterfaces
See the example makefile in the "tools" folder included with the GPCPInterfaces.
i downloaded and installed the pascal interfaces using the link provided.
now when i do this:
gpc -s -o testcarb testcarb.pas --automake -Wl,-framework,Carbon --unit-path=/Developer/Pascal/GPCPInterfaces -I/Developer/Pascal/GPCPInterfaces
i get:
/usr/bin/ld: can't locate file for: -lCarbon collect2: ld returned 1 exit status
that seems like a small step toward success. what to do now?
thanks.
- philip