Add -TP (i.e. " -TP ") to your ld-options-prelude argument. It makes MSVC treat your .c file as a .cpp.<div><br></div><div>Mikael<br><br><div class="gmail_quote">2010/1/31 Seth Burleigh <span dir="ltr"><<a href="mailto:seth@tewebs.com">seth@tewebs.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal">Recently , I have wanted to embed c++ code in gambit just
like you can do with c code. Not having any success building the windows GNU
version by passing –enable-cplusplus to ./configure, I switched to linux,
built gambit, and discovered that I could easily embed c++ code in c-declare
forms.</p>

<p class="MsoNormal">(c-declare “using namespace std; public class Test : ……….”)
 Then I could use c++ methods from c-lambda forms, etc.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Now im switching back to windows. Since I have had no luck
building gambit-c in windows when attempting to enable cplusplus, I have
switched to attempting the same with  visual c++. However I see no
equivalent option in the visual c++  express .bat build file.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">The compiler assumes that all of my files are c files,
because they end with .c, so it signals an error when I attempt to compile code
like</p>

<p class="MsoNormal"> (c-declare “using namespace std; public class
test: …….”) </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Has anyone had any success in embedding visual c++ code into
their gambit-c apps?</p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br></div>