Re: [gtkmm] Piping compiler error to a file - How?



Yes!
That did the trick.

OK, this are the warnings and errors:
g++: --export-dynamic: linker input file unused because linking not done
g++: -lgtkmm-2.0: linker input file unused because linking not done
g++: -lgdkmm-2.0: linker input file unused because linking not done
g++: -latkmm-1.0: linker input file unused because linking not done
g++: -lgtk-x11-2.0: linker input file unused because linking not done
g++: -lX11: linker input file unused because linking not done
g++: -lpangomm-1.0: linker input file unused because linking not done
g++: -lglibmm-2.0: linker input file unused because linking not done
g++: -lsigc-1.2: linker input file unused because linking not done
g++: -lgdk-x11-2.0: linker input file unused because linking not done
g++: -latk-1.0: linker input file unused because linking not done
g++: -lgdk_pixbuf-2.0: linker input file unused because linking not done
g++: -lpangox-1.0: linker input file unused because linking not done
g++: -lpango-1.0: linker input file unused because linking not done
g++: -lgobject-2.0: linker input file unused because linking not done
g++: -lgmodule-2.0: linker input file unused because linking not done
g++: -lglib-2.0: linker input file unused because linking not done
g++: -lintl: linker input file unused because linking not done
g++: -liconv: linker input file unused because linking not done
g++: -lm: linker input file unused because linking not done
g++: --export-dynamic: linker input file unused because linking not done
g++: -lgtkmm-2.0: linker input file unused because linking not done
g++: -lgdkmm-2.0: linker input file unused because linking not done
g++: -latkmm-1.0: linker input file unused because linking not done
g++: -lgtk-x11-2.0: linker input file unused because linking not done
g++: -lX11: linker input file unused because linking not done
g++: -lpangomm-1.0: linker input file unused because linking not done
g++: -lglibmm-2.0: linker input file unused because linking not done
g++: -lsigc-1.2: linker input file unused because linking not done
g++: -lgdk-x11-2.0: linker input file unused because linking not done
g++: -latk-1.0: linker input file unused because linking not done
g++: -lgdk_pixbuf-2.0: linker input file unused because linking not done
g++: -lpangox-1.0: linker input file unused because linking not done
g++: -lpango-1.0: linker input file unused because linking not done
g++: -lgobject-2.0: linker input file unused because linking not done
g++: -lgmodule-2.0: linker input file unused because linking not done
g++: -lglib-2.0: linker input file unused because linking not done
g++: -lintl: linker input file unused because linking not done
g++: -liconv: linker input file unused because linking not done
g++: -lm: linker input file unused because linking not done
main.o(.rdata$_ZTVN3jme4WimmE+0x2d8): In function `_GLOBAL__D_main':
/usr/include/c++/3.3.1/iostream:8: undefined reference to `virtual thunk [v:0,-28] to Gtk::Object::destroy_notify_()' main.o(.rdata$_ZTCN3jme4WimmE4_N3Gtk6WindowE+0x2bc):/usr/include/c++/3.3.1/iostream:8: undefined reference to `virtual thunk [v:0,-28] to Gtk::Object::destroy_notify_()' main.o(.rdata$_ZTCN3jme4WimmE4_N3Gtk3BinE+0x168): In function `_ZTv0_n20_N3jme4WimmD0Ev': /home/admin/dev/lib/jme/wimm/main.cpp: undefined reference to `virtual thunk [v:0,-28] to Gtk::Object::destroy_notify_()' main.o(.rdata$_ZTCN3jme4WimmE4_N3Gtk9ContainerE+0x168):/home/admin/dev/lib/jme/wimm/main.cpp: undefined reference to `virtual thunk [v:0,-28] to Gtk::Object::destroy_notify_()' main.o(.rdata$_ZTCN3jme4WimmE4_N3Gtk6WidgetE+0x140):/home/admin/dev/lib/jme/wimm/main.cpp: undefined reference to `virtual thunk [v:0,-28] to Gtk::Object::destroy_notify_()' main.o(.rdata$_ZTCN3jme4WimmE4_N3Gtk6ObjectE+0x50):/home/admin/dev/lib/jme/wimm/main.cpp: more undefined references to `virtual thunk [v:0,-28] to Gtk::Object::destroy_notify_()' follow Info: resolving vtable for SigC::ObjectBaseby linking to __imp___ZTVN4SigC10ObjectBaseE (auto-import)
collect2: ld returned 1 exit status
make: *** [wimm.exe] Error 1


Thanks folks, I really appreciate this!!

3rdshift comcast net wrote:

try

make 2>make.log 1>&2

-Vlad

On Wed, 2004-04-21 at 15:08, Maya wrote:
Hi!
Thanks for the help!
I tried that, but all I got was this: "  g++ main.o wimm.o `pkg-config
gtkmm-2.0 --libs` -o wimm.exe
"
The errors are sent to the screen and not the file!
I am starting to wonder if it is possible at all :-(
Thanks!!
e97_far e kth se wrote:
"Laughlin, Joseph V" <Joseph V Laughlin boeing com> writes:

If you are using a makefile, do "make > compile_errors.txt"

If you are doing it by hand, do "g++ -o stuff stuff.cc >
compile_errors.txt" or whatever your compile line is.
Except that compiler errors are sent to stderr, so you should do
make 2> compile_errors.txt

--
* YOU first you said that there were weapons of mass destruction
* Then YOU said that the only way to expose them was through  a war
* YOU sent over 150 children to die
* Kill those who did not agree with you
* And now WE know it was all a lie.
* Daddy must be very proud of you, boy!
* Between you and I, is Osama your father's idea too?

* The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X

* You cannot exercise your power to a point of humiliation.
                              - Jean Chretien

From WE to YOU, with love:
* E-Mail Policy
    http://www.vif.com/users/escalante/Email_Policy.html

--
* YOU first you said that there were weapons of mass destruction
* Then YOU said that the only way to expose them was through  a war
* YOU sent over 150 children to die
* Kill those who did not agree with you
* And now WE know it was all a lie.
* Daddy must be very proud of you, boy!
* Between you and I, is Osama your father's idea too?

* The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X

* You cannot exercise your power to a point of humiliation.
                              - Jean Chretien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]