This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Code compiles with g++ 3.3 but not g++ 4.4


With this code:
http://www.rpi.edu/~doriad/Daniweb/maxflow/
If I run

g++ Example.cpp graph.cpp

with g++ 3.3, everything works fine. However if I run the same command with
g++ 4.4, I get this error:

Example.cpp:(.text+0x38): undefined reference to `Graph<int, int,
int>::Graph(int, int, void (*)(char*))'

Does anyone know how I can get this to work with g++ 4.4?

Thanks!

David
-- 
View this message in context: http://www.nabble.com/Code-compiles-with-g%2B%2B-3.3-but-not-g%2B%2B-4.4-tp25929745p25929745.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]