Brian Wichmann wrote:
gpc --classic-pascal CONF001.PAS /usr/bin/ld: CONF001.PAS bad magic number (not a Mach-O file) collect2: ld returned 1 exit status [Brian-Wichmanns-Computer:P8/gnupascal/CONFORM] brianwic% gpc CONF001.PAS /usr/bin/ld: CONF001.PAS bad magic number (not a Mach-O file) collect2: ld returned 1 exit status [Brian-Wichmanns-Computer:P8/gnupascal/CONFORM] brianwic%
The test is attached.
I have no idea what this is about!!
By default gpc uses file extension to decide what to do with the input file: .PAS is _not_ recognized as Pascal extension (.pas is). Files with unrecognized extension are passed to the linker (which then complains about magic number). So either rename the input files to use .pas or .p extension or add explicit option:
gpc -x Pascal --classic-pascal CONF001.PAS
should work.