Sagewire Logo

Cannot compile c++

4 Message(s) by 3 Author(s) originally posted in netbeans ide java


From: netbean3r Date:   Tuesday, December 25, 2007
Please help me! I have been trying for hours and hours!

I am trying to use C++ with Netbeans 6.0. I have gotten MinGW, GDB, and Msys.
Netbeans finds my tools OK. The problem is with the makefiles. I don't
know how to write makefiles by hand and don't with to do so, as Netbeans
does this automatically. The problem is, I believe, that the make program
wants UNIX style path names, and the Netbeans automatically generated
makefiles use Windows style pathnames, or vice versa....I am not completely
sure but I am 99% sure this is the problem. I get syntax error s when trying
to compile (not C++ syntax errors) such as:

==================
Running "C:\MinGW\bin\mingw32-make.exe -f nbproject/Makefile-Debug.mk
build/Debug/MinGW-Windows/test2.o" in C:\

mkdir -p build/Debug/MinGW-Windows

The syntax of the command is incorrect.

mingw32-make: *** [build/Debug/MinGW-Windows/test2.o] Error 1Build failed. Exit value 2.
============

Can anyone help with this? I have tried searching for answers but found
none....I am pulling my hair out!!
--
View this message in context: http://www.nabble.com/Cannot-compile-c%2B%2B-tp14497214p14497214.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.


From: Karthik Date:   Wednesday, December 26, 2007
http://wiki.sergio-lopes.org/index.php?n=Rabble.NetbeansCinW

Does the above help?

regards,
karthik

wrote in message:
Please help me! I have been trying for hours and hours!
I am trying to use C++ with Netbeans 6.0. I have gotten MinGW, GDB, and Msys.
Netbeans finds my tools OK. The problem is with the makefiles. I don't
know how to write makefiles by hand and don't with to do so, as Netbeans
does this automatically. The problem is, I believe, that the make program
wants UNIX style pathnames, and the Netbeans automatically generated
makefiles use Windows style pathnames, or vice versa....I am not completely
sure but I am 99% sure this is the problem. I get syntax errors when trying
to compile (not C++ syntax errors) such as:
==================
Running "C:\MinGW\bin\mingw32-make.exe -f nbproject/Makefile-Debug.mk
build/Debug/MinGW-Windows/test2.o" in C:\
mkdir -p build/Debug/MinGW-Windows
The syntax of the command is incorrect.
mingw32-make: *** [build/Debug/MinGW-Windows/test2.o] Error 1
Build failed. Exit value 2.
============
Can anyone help with this? I have tried searching for answers but found
none....I am pulling my hair out!!





From: Gordon Prieur Date:   Wednesday, December 26, 2007
Hi,

The problem is that the make program you're using is the wrong one. You
need to use the make from msys rather than ming32-make from MinGW. See
http://www.mingw.org/mingwfaq.shtml#faq-mingw32-make.exe for more
details.

wrote in message:
Please help me! I have been trying for hours and hours!
I am trying to use C++ with Netbeans 6.0. I have gotten MinGW, GDB, and Msys.
Netbeans finds my tools OK. The problem is with the makefiles. I don't
know how to write makefiles by hand and don't with to do so, as Netbeans
does this automatically. The problem is, I believe, that the make program
wants UNIX style pathnames, and the Netbeans automatically generated
makefiles use Windows style pathnames, or vice versa....I am not completely
sure but I am 99% sure this is the problem. I get syntax errors when trying
to compile (not C++ syntax errors) such as:
==================
Running "C:\MinGW\bin\mingw32-make.exe -f nbproject/Makefile-Debug.mk
build/Debug/MinGW-Windows/test2.o" in C:\
mkdir -p build/Debug/MinGW-Windows
The syntax of the command is incorrect.
mingw32-make: *** [build/Debug/MinGW-Windows/test2.o] Error 1
Build failed. Exit value 2.
============
Can anyone help with this? I have tried searching for answers but found
none....I am pulling my hair out!!





From: netbean3r Date:   Thursday, December 27, 2007
Yes, that did it! Thank you so much!
To the other reply: I followed the instructions on the above link and now it
works. I am still using the MinGW32-make executable.

For people who have this same problem in the future and find this forum:
Make sure you've added the MinGW\bin path to your build tools and selected
the GNU Compiler Collection from MinGW as your compiler collection. I
thought I had done this but apparently I forgot to hit OK or something. If
others out there still have trouble with this contact me and I can help you
through the process I went through.
wrote in message:
http://wiki.sergio-lopes.org/index.php?n=Rabble.NetbeansCinW
Does the above help?
regards,
karthik
wrote in message:
Please help me! I have been trying for hours and hours!

I am trying to use C++ with Netbeans 6.0. I have gotten MinGW, GDB, and
Msys.
Netbeans finds my tools OK. The problem is with the makefiles. I don't
know how to write makefiles by hand and don't with to do so, as Netbeans
does this automatically. The problem is, I believe, that the make
program
wants UNIX style pathnames, and the Netbeans automatically generated
makefiles use Windows style pathnames, or vice versa....I am not
completely
sure but I am 99% sure this is the problem. I get syntax errors when
trying
to compile (not C++ syntax errors) such as:

==================
Running "C:\MinGW\bin\mingw32-make.exe -f nbproject/Makefile-Debug.mk
build/Debug/MinGW-Windows/test2.o" in C:\

mkdir -p build/Debug/MinGW-Windows

The syntax of the command is incorrect.

mingw32-make: *** [build/Debug/MinGW-Windows/test2.o] Error 1


Build failed. Exit value 2.
============

Can anyone help with this? I have tried searching for answers but found
none....I am pulling my hair out!!




--
View this message in context: http://www.nabble.com/Cannot-compile-c%2B%2B-tp14497214p14510998.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.



Next Message: Just a thought...


Blogs related to Cannot compile c++

[continuum] BUILD FAILURE: Maven PMD Plugin
/export/home/build/data/continuum/checkouts/27/src/main/java/org/apache/maven/plugin/pmd/CpdReportGenerator.java:[27,-1] cannot access net.sourceforge.pmd.PMD ...

cannot run in framebuffer mode please specify busids
... constructor java cannot resolve symbol error cannot resolve symbol error in java cannot resolve symbol in java cannot resolve symbol java cannot resolve symbol java compile cannot resolve symbol java error cannot resolve symbol java ...

AW: Problem with continuum 1.1 - cannot connect with web browser
Compiler.compile(Compiler.java:297) > > jvm 1 | at > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) > > jvm 1 | at > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) > > jvm 1 | at ...

Re: Mark for Review Plugin
m\atlassian\confluence\extra\markforreview\ModeratorReport.java:112: cannot find symbol [javac] symbol : class HttpServletRequest [javac] location: class com.atlassian.confluence.extra.markforreview.Moderat orReport ...

Re: [continuum] BUILD FAILURE: Maven PMD Plugin
apache/maven/plugin/pmd/CpdReportGenerator.java:[27,-1] cannot > access net.sourceforge.pmd.PMD > bad class file: /export/home/build/.m2/repository/pmd/pmd/4.1/ > pmd-4.1.jar(net/sourceforge/pmd/PMD.class) ...

[continuum] BUILD FAILURE: Archiva Base :: Configuration
/export/home/build/data/continuum/checkouts/271/src/test/java/org/apache/maven/archiva/configuration/LegacyArtifactPathTest.java:[34,12] cannot find symbol symbol : class LegacyArtifactPath ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional