<div dir="ltr">Thanks Marc. I upgraded to v4.8.4 and I am able to build and link the static library without problems.<div><br></div><div>--Vijay</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 9, 2016 at 1:07 AM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes the two commands (gsc followed by gcc) can (after the fix) be replaced by the single invocation of gsc:<br>
<span class=""><br>
gsc -exe -l core/ab.c -ld-options ab.a myapp.scm<br>
<br>
</span>Alternatively, you can completely avoid using gcc with the following sequence of commands (that also work without the recent fix):<br>
<span class=""><br>
gsc -link -l core/ab.c myapp.scm<br>
</span>gsc -obj myapp.c<br>
gsc -obj myapp_.c<br>
gsc -exe -ld-options ab.a myapp.o myapp_.o<br>
<br>
and yes, that is better than invoking gcc explicitly, because it will pass the correct options to gcc (or whatever C compiler Gambit was configured with).<br>
<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Mar 8, 2016, at 2:24 PM, Bradley Lucier <<a href="mailto:lucier@math.purdue.edu">lucier@math.purdue.edu</a>> wrote:<br>
><br>
> I still don't understand. You're still compiling Gambit-generated code with gcc without the correct options.<br>
><br>
> Are you saying that now that gsc is fixed you don't need the second command, beginning with "gcc ..."?<br>
><br>
> Brad<br>
><br>
>> On Mar 8, 2016, at 2:20 PM, Marc Feeley <<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>> wrote:<br>
>><br>
>> Yes, the one that was broken and is now fixed!<br>
>><br>
>> Marc<br>
>><br>
>>> On Mar 8, 2016, at 2:18 PM, Bradley Lucier <<a href="mailto:lucier@math.purdue.edu">lucier@math.purdue.edu</a>> wrote:<br>
>>><br>
>>><br>
>>><br>
>>>> On Mar 8, 2016, at 1:50 PM, Marc Feeley <<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>> wrote:<br>
>>>><br>
>>>> So after that, you can build your app with the following commands:<br>
>>>><br>
>>>> gsc -link -l core/ab.c myapp.scm<br>
>>>> gcc -o myapp ab.a `gsc -e '(print (path-expand "~~lib/libgambit.a"))'` myapp_.c myapp.c<br>
>>><br>
>>> You probably shouldn't use a bare "gcc" command because it won't have the options Gambit-generated code needs for correctness. Isn't there a gsc command that does the same thing?<br>
>>><br>
>>> Brad<br>
>><br>
<br>
</div></div></blockquote></div><br></div>