El 16/05/12 23:20, David C. Rankin escribió:
Guys,
I'm trying to apply a patch to the GNU external ballistics source and package it in a rpm, but I've got an undefined reference error during the link I need help fixing. The source for the app (patched for opensuse 11.4 [113k]) is:
When building, I get an error during linking:
g++ -O3 -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -L./lib/ballistics -o gebc InputWindow.o PlotWindow.o RangeWindow.o LicenseWindow.o AboutWindow.o PBRWindow.o GBCSolution.o GNU_Ballistics.o -lhpdf -lballistics -L/usr/lib64 -lfltk_images -lpng -lz -ljpeg -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 InputWindow.o: In function `InputWindow::cb_Target(Fl_Widget*, void*)': /usr/src/packages/BUILD/gebc-1.07/InputWindow.cpp:812: undefined reference to `TargetWindow::TargetWindow(int, int, GBCSolution*, GBCSolution*, GBCSolution*, GBCSolution*)' collect2: ld returned 1 exit status (snip) And, finally TargetWindow.cpp contains the constructor:
There is no "TargetWindow.o" object in the linker command line, and hence it will obviously fail undefined references... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org