[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ "undefined reference" [not-in-charge] [in-charge]
- Date: 06 Oct 2003 15:15:40 +0100
- From: hv at uninova.pt (Hugo)
- Subject: C++ "undefined reference" [not-in-charge] [in-charge]
Hi!
I am trying to compile a C++ program for the 1st time but I am having
some problems.
I can compile a typical "Hello World" example and I have changed the
Makefile to use the 'make-cxx-exe', but unfortunately I still have some
errors.
The code:
#include <pcibios.h>
int main() {
pcib_init();
return 0;
}
The compilation error:
Undefined reference to 'pcib_init()'
If I try to compile this code as C instead of C++ it compiles with no
error.
What am I forgetting?
Many thanks,
HV