Charj: Added include path for stdlib into charj/src/charj/libs to Array header files.
authorJonathan Lifflander <jliffl2@illinois.edu>
Sat, 3 Jul 2010 21:54:04 +0000 (16:54 -0500)
committerJonathan Lifflander <jliffl2@illinois.edu>
Sat, 3 Jul 2010 21:54:04 +0000 (16:54 -0500)
src/langs/charj/src/charj/translator/Translator.java

index fce9d4f1aa85f708722ae5962e5265f621a17fd1..9f8b210b437d1a47726d768057fc9a7f4ee7e017 100644 (file)
@@ -379,8 +379,8 @@ public class Translator {
         }
 
         // Compile c++ output
-        cmd = charmc + " -c " + baseTempFilename + ".cc" + 
-            " -o " + baseTempFilename + ".o";
+        cmd = charmc + " -I" + m_stdlib + "/charj/libs -c " +
+            baseTempFilename + ".cc" + " -o " + baseTempFilename + ".o";
         retVal = exec(cmd, currentDir);
         if (retVal != 0) {
             error("Could not compile generated C++ file");