PDA

View Full Version : Oddity in Anjuta



terminalspin
October 16th, 2005, 09:03 PM
I have been looking at Anjuta in Ubuntu 5.10 for C++ development on gtkmm.

I'm not an experienced C++ programmer - I come from a Java background, so I may well have missed something, but...

My program compiles OK, but If I use the built in Build | Build command, I get the following output:-


Building file: testgtkmm.cc ...
g++ `pkg-config --cflags gtkmm-2.4` "testgtkmm.cc" `pkg-config --libs gtkmm-2.4` -o "testgtkmm"
g++: `pkg-config: No such file or directory
g++: gtkmm-2.4`: No such file or directory
g++: `pkg-config: No such file or directory
g++: gtkmm-2.4`: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags"
cc1plus: error: unrecognized command line option "-flibs"
Completed ... unsuccessful
Total time taken: 0 secs

However, if I enter the same g++ command in a terminal, it compiles and links fine.

g++ `pkg-config --cflags gtkmm-2.4` "testgtkmm.cc" `pkg-config --libs gtkmm-2.4` -o "testgtkmm"

My build command under Settings | Commands is the default g++ $(anjuta.compiler.flags) "$(current.file.name.ext)" $(anjuta.linker.flags) -o "$(current.file.name)"

Does anyone have any ideas?

thanks,

T

wmcbrine
October 17th, 2005, 08:50 AM
It looks like it's not going through the shell, so the backticks aren't being interpreted. I dunno why, though. It's as though it were using exec() when it should be using system(), or something.