User forums > Help

g++ no input file

<< < (3/4) > >>

Varz:
Yeah that was the one i was stuffing around with to get working I forgot about that.

Varz:
Now I'm having this problem with wx projects:

-------------- Build: Release in wxtest ---------------

g++ -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -Wall  -O2  'wx-config -cflags'    -c /home/mark/Documents/CB/wxtest/wxtestApp.cpp -o obj/Release/wxtestApp.o
g++: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
That is actually a new project I've attached if you can help.

[attachment deleted by admin]

eranif:

--- Code: ---'wx-config -cflags'
--- End code ---
Are these backticks? cause they dont seem like backticks to me.
Also, the above command will not work even when using backticks, since they should be writtern with two hyphens (--)
Try replace them with these:

--- Code: ---`wx-config --cflags`
--- End code ---

Another thing, if u r using `wx-config --cflags`, there is no need to add all the flags manually:

So this long compilation line:

--- Code: ---g++ -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -Wall  -O2  'wx-config -cflags'    -c /home/mark/Documents/CB/wxtest/wxtestApp.cpp -o obj/Release/wxtestApp.o
--- End code ---
can be changed to:

--- Code: ---g++ -O2  `wx-config --cflags`    -c /home/mark/Documents/CB/wxtest/wxtestApp.cpp -o obj/Release/wxtestApp.o
--- End code ---

Eran

Varz:
I just added 'wx-config --cflags' to compiler options and 'wx-config --libs' to the linker options I didn't add them in manually.
Also if I use ` instead of ' it doesn't work at all.

Jenna:

--- Quote from: Varz on January 27, 2008, 10:44:16 am ---I just added 'wx-config --cflags' to compiler options and 'wx-config --libs' to the linker options I didn't add them in manually.
Also if I use ` instead of ' it doesn't work at all.

--- End quote ---

It can't work without backticks (`).

Your zipped project (wxtest.zip) works fine for me, no problems.

The error you described happens if you have 'wx-config -cflags' in the "Settings -> Compiler and debugger settings -> Global compiler settings -> GNU GCC Compiler -> Other options".
"g++" then searches for an input file named 'wx-config -cflags' and can't find it of course.

Remove all project-specific settings from Global Compiler settings if you are not 100% sure that you need them for all projects compiled with this compiler.
The wxWidgets specific settings should normally only be in the projects "Build options".

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version