views:

68

answers:

2

how to resolve undefined references [linker error] in dev cpp?

A: 

You look at where the error is and fix your typo.

Anon.
A: 

Sounds like you aren't linking up all required object files and libraries.

If you're linking to a library, such as the math library libmath, be sure to link to the library in your makefile/compilation step:

gcc somefile.c -lm

If you're building intermediate object files and linking these together at the end, be sure to include them all:

gcc somefile.o otherfile.o finalfile.o

In other words, it sounds like you have header files that include declarations all set, however you aren't connecting the declarations with their definitions and uses when you compile.

Willi Ballenthin