Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » g++.exe: no input files on mingw
g++.exe: no input files on mingw [message #159910] Mon, 05 December 2005 10:18 Go to next message
Eclipse UserFriend
I'm following Creating a simple Managed C++ Project -- "Hello World" on a
Windows Platform and Building a simple C++ Project -- "Hello World" on a
Windows Platform. I get the following build output:

make -k clean all
rm -rf ./hello.o ./hello.d HELLO.exe

Building file: ../hello.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -ohello.o ../hello.cpp
g++.exe: no input files
make: *** [hello.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project HELLO

What can be wrong?

Thanks/Mikael
Re: g++.exe: no input files on mingw [message #161048 is a reply to message #159910] Sun, 25 December 2005 18:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbaudier.laposte.net

Hi,

I ran into the same issue (unable to use MinGW with CDT because of the error
g++.exe: no input files).

Actually it seems to be an issue with make in MinGW (and not with CDT
itself, since the issue can be reproduced from the command line, using
make).
make tries to use 'sh' in order to run the g++ command. (seen using the -d
option, which generates a debug output)

By adding the argument --win32, it was possible to compile:

'Building file: ../JNIAdapter.cpp'
'Invoking: GCC C++ Compiler'
g++ -D_REENTRANT -D_GNU_SOURCE -D__int64="long
long" -I"C:\jdk1.5.0_05\include" -I"C:\jdk1.5.0_05\include\win32" -O3 -Wall
-c -fmessage-length=0 -mno-cygwin -oJNIAdapter.o ../JNIAdapter.cpp
'Finished building: ../JNIAdapter.cpp'
' '

But when make tries to link, it runs again into the same kind of error:

'Building target: ../../PrenzlJ/dll/prenzl.dll'
'Invoking: GCC C++ Linker'
g++ -mno-cygwin -Wl,--add-stdcall-alias -shared -o../../PrenzlJ/dll/prenzl.dll
../JNIAdapter.o
g++.exe: no input files

Running
'g++ -mno-cygwin -Wl,--add-stdcall-alias -shared -o../../PrenzlJ/dll/prenzl.dll
../JNIAdapter.o' from the command line in the same directory actually works.
And that what make seems to do (as can be seen using -d option)

Hope it helps (a little bit), and I would also be grateful for help for the
next step!
I would also be happy to find a MinGW newsgroup. I could not find any. If
anybody knows one...

Cheers,

Mathieu

"Mikael Hakman" <mhakman@dkab.net> a
Re: g++.exe: no input files on mingw [message #161525 is a reply to message #161048] Sun, 08 January 2006 05:53 Go to previous messageGo to next message
Eclipse UserFriend
msys and mingw musn't be installed to the same directory.
Re: g++.exe: no input files on mingw [message #161591 is a reply to message #161525] Tue, 10 January 2006 16:49 Go to previous message
Eclipse UserFriend
Originally posted by: mbaudier.laposte.net

Hi,

it worked! Thanks a lot!

I used the following install files:
binutils-2.15.91-20040904-1.tar.gz
gcc-core-3.4.2-20040916-1.tar.gz
gcc-g++-3.4.2-20040916-1.tar.gz
gcc-objc-3.4.2-20040916-1.tar.gz
gdb-5.2.1-1.exe
mingw-runtime-3.9.tar.gz
mingw-utils-0.3.tar.gz
mingw32-make-3.80.0-3.exe
w32api-3.5.tar.gz

but not:
MSYS-1.0.10.exe
(as recommanded)

Please note that I had:
+ to rename bin/mingw32-make.exe into bin/make.exe
+ to move some files (from install file gdb-5.2.1-1.exe) from ./mingw32 to .

Cheers,

Mathieu

"ironeagle" <iron.eagle@gmx.at> a
Previous Topic:Set the include path of sub-directory
Next Topic:watchpoints on dynamic memory
Goto Forum:
  


Current Time: Thu May 01 09:25:02 EDT 2025

Powered by FUDForum. Page generated in 0.06200 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top