Menu

Weird compiling error - windoze+backslashes?

2002-11-11
2012-09-26
  • Nobody/Anonymous

    Something really weird is happening - dev-cpp has been working fine for ages, and now (after firing it up for the first time in a few weeks) it does this - for any project (I just created a simple default "hello world" project)  - anyone seen this before???

    -=-=-=-

    Building Makefile: "D:\cppstuff\testproject\Makefile.win"
    Executing  make...
    d:\dev-cpp\bin\make.exe -f "D:\cppstuff\testproject\Makefile.win" all
    d:\dev-cpp\bin\g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include"   -s

    d:dev-cppbing++.exe: not found
    d:\dev-cpp\bin\make.exe: *** [main.o] Error 127

    Execution terminated

    -=-=-=-=-

    It seems to be losing the backslashes in the g++ path... so I tried changing it to double backslashes for the g++ path *only*, and this is what it does:

    -=-=-=-=-

    Building Makefile: "D:\cppstuff\testproject\Makefile.win"
    Executing  make...
    d:\dev-cpp\bin\make.exe -f "D:\cppstuff\testproject\Makefile.win" all
    d:\\dev-cpp\\bin\\g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include"   -s

    d:\\dev-cpp\\bin\\g++.exe main.o  -o "Console App.exe" -L"C:/Dev-Cpp/lib"  -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include"   -s

    g++.exe: App.exe -LC:/Dev-Cpp/lib : Invalid argument

    d:\dev-cpp\bin\make.exe: *** ["Console] Error 1

    Execution terminated

    -=-=-=-=-

    Any clues?  I'm completely baffled.

     
    • Nobody/Anonymous

      I just noticed it was picking up some path info from another installation in c:\dev-cpp - have fixed all my paths now - it didn't fix my problem though....

      BUT....

      I put the path to g++ in quotes (i.e. "d:\dev-cpp\bin\g++.exe") and it works!(?)

      Crazy stuff...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.