由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - /usr/bin/ld: Undefined symbols:
相关主题
question about const reference[合集] 请牛人解释为啥C++ has stronger typing than C//bow
Effective C++ 这破书![合集] c++的dynamic_cast是如何实现的?
Help: undefined symbolC++0x
The untold truth about C++读Bjarne Stroustrup写得The C++ programming language 是不是经常有不知所谓的感觉。
Question on C++ Access Control (protected)(zz)C++11新特性
C++,大家觉得最值得买最想买最不后悔买的书是哪本?这么好的帖子没人转?
VB, C++初学者清推荐书籍有必要开个c++版
哪位大侠有如下书籍的电子版,或者下载地址,多谢Bjarne Stroustrup C++第四版电子版出来了
相关话题的讨论汇总
话题: fl话题: window话题: undefined话题: widget话题: int
进入Programming版参与讨论
1 (共1页)
w*****j
发帖数: 49
1
Hi, everybody, I'm trying to use gcc to compile a program on my mac. It use
FLTK library. And when i type "g++ -o scratch scratch.c++". it gives the
error:
/usr/bin/ld: Undefined symbols:
Fl::run()
Fl_Widget::Fl_Widget(int, int, int, int, char const*)
Fl_Widget::~Fl_Widget()
Fl_Window::show()
Fl_Window::Fl_Window(int, int, char const*)
Fl_Window::~Fl_Window()
vtable for Fl_Box
collect2: ld returned 1 exit status
Anybody gets any suggestions? Thanks.
t****t
发帖数: 6806
2
you used "FLTK library"? where is it? I mean, in your command? You have to
tell linker where to find the library.

use

【在 w*****j 的大作中提到】
: Hi, everybody, I'm trying to use gcc to compile a program on my mac. It use
: FLTK library. And when i type "g++ -o scratch scratch.c++". it gives the
: error:
: /usr/bin/ld: Undefined symbols:
: Fl::run()
: Fl_Widget::Fl_Widget(int, int, int, int, char const*)
: Fl_Widget::~Fl_Widget()
: Fl_Window::show()
: Fl_Window::Fl_Window(int, int, char const*)
: Fl_Window::~Fl_Window()

w*****j
发帖数: 49
3
I installed it. I don't know much about all this stuff. I am learning
Stroustrup's <>. And he use
fltk to teach us GUI. In the code I have already include .h>. I don't know what I should do. Could you please give me some pointers?
Thank you very much.

【在 t****t 的大作中提到】
: you used "FLTK library"? where is it? I mean, in your command? You have to
: tell linker where to find the library.
:
: use

z****e
发帖数: 2024
4
as thrust told you, you need to link your F**k library.
such like:
g++ -o scratch scratch.c++ -LF**klibrary
w*****j
发帖数: 49
5
Hi,I used -lfltk and it sort of change the error message:
Undefined symbols:
_AECountItems
_AECreateDesc
etc.
Am I supposed to link to another library?

【在 z****e 的大作中提到】
: as thrust told you, you need to link your F**k library.
: such like:
: g++ -o scratch scratch.c++ -LF**klibrary

1 (共1页)
进入Programming版参与讨论
相关主题
Bjarne Stroustrup C++第四版电子版出来了Question on C++ Access Control (protected)
有人看了新版 1368页的 c++ programming language 吗C++,大家觉得最值得买最想买最不后悔买的书是哪本?
大家要学习C++11啊, 我觉得C++11很多FEATURE,绝对不输JAVA.VB, C++初学者清推荐书籍
C++必备书籍推荐哪位大侠有如下书籍的电子版,或者下载地址,多谢
question about const reference[合集] 请牛人解释为啥C++ has stronger typing than C//bow
Effective C++ 这破书![合集] c++的dynamic_cast是如何实现的?
Help: undefined symbolC++0x
The untold truth about C++读Bjarne Stroustrup写得The C++ programming language 是不是经常有不知所谓的感觉。
相关话题的讨论汇总
话题: fl话题: window话题: undefined话题: widget话题: int