"undefined reference to"

thanks guys!

when trying to build these files im getting "undefined reference to" errors. heres a screen shot of what i mean..http://imageshack.us/photo/my-images/600/helpk.png/

any help would be much appreciated.
Last edited on
You're not linking to your circletype.cpp file.

Make sure that file is added to your project.
kinda confused. even if i add #include "circleType.cpp" i still get the errors?
closed account (zb0S216C)
Don't #include source modules. Add your source module to your project. Then, include your header module into your source module. Any modules outside the project are ignored.

To add a file to a project in Visual C++:

1) Right-click the solution.
2) Click Add then Existing Item.
2) Find your module.

To add a file to a project in Code::Blocks:

1) Right-click the project name (under Workspace).
2) Click Add Files.
3) Find your module.

Wazzak
Last edited on
Topic archived. No new replies allowed.