I am getting the following error when I try the example from the documentation on building an executable program on my Windows XP machine:
$ gsc -c m2
$ gsc -c m3
$ gsc m2.c m3.c *** ERROR -- linker info is missing from file C:\msys\1.0\local\Gambit-C\lib_gambc.c
I get this same error whether I use a version built using the Visual Studio solution file included in misc, or an MSYS build (in this case, a simple ./configure without any options).
Does anyone have any suggestions for what I might be doing wrong?
Cheers, Tim R.
Afficher les réponses par date
The problem is that Gambit assumes that lines in generated .c files are ended with only linefeeds (0A) but your _gambc.c file got converted to Windows line end standard. Just use an editor to adjust the file should fix the problem.
Timothy Ritchey wrote:
I am getting the following error when I try the example from the documentation on building an executable program on my Windows XP machine:
$ gsc -c m2
$ gsc -c m3
$ gsc m2.c m3.c *** ERROR -- linker info is missing from file C:\msys\1.0\local\Gambit-C\lib_gambc.c
I get this same error whether I use a version built using the Visual Studio solution file included in misc, or an MSYS build (in this case, a simple ./configure without any options).
Does anyone have any suggestions for what I might be doing wrong?
Cheers, Tim R. _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
That did the trick. Thanks!
For future reference, is there anything I should have done to avoid the line-ending conversion?
Cheers, Tim R.
On Jun 11, 2006, at 11:59 AM, Guillaume Cartier wrote:
The problem is that Gambit assumes that lines in generated .c files are ended with only linefeeds (0A) but your _gambc.c file got converted to Windows line end standard. Just use an editor to adjust the file should fix the problem.
Timothy Ritchey wrote:
I am getting the following error when I try the example from the documentation on building an executable program on my Windows XP machine:
$ gsc -c m2
$ gsc -c m3
$ gsc m2.c m3.c *** ERROR -- linker info is missing from file C:\msys\1.0\local \Gambit-C\lib_gambc.c
I get this same error whether I use a version built using the Visual Studio solution file included in misc, or an MSYS build (in this case, a simple ./configure without any options).
Does anyone have any suggestions for what I might be doing wrong?
Cheers, Tim R. _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
On 11-Jun-06, at 12:52 PM, Timothy Ritchey wrote:
That did the trick. Thanks!
For future reference, is there anything I should have done to avoid the line-ending conversion?
I'm not sure. But I'll change the linker and compiler so that they accepts all three forms of end-of-line.
Marc
On Jun 11, 2006, at 2:53 PM, Marc Feeley wrote:
I'm not sure.
My own stupidity apparently. WinZip automatically does "smart" linefeed conversion, which I finally figured out how to turn off. That fixed the issue so that the example works out of the box. Thank you for the quick fix.