Then I error checked it with Ubuntu using G++, the program then compiles fine. So keep in mind my problem is that I want to know what I have to do in WINDOWS to get this working for future projects, because i prefer using Code::blocks to Ubuntu text editors.
This is a multi file program using custom headers. My problem is somewhere in the linking.
Here is my build error.
A1main.cpp||undefined reference to `loadBk(phoneBk*)'|
A1main.cpp||undefined reference to `AddPerson(phoneBk*)'|
A1main.cpp||undefined reference to `ChangePosition(phoneBk*)'|
A1main.cpp||undefined reference to `MoveRoom(phoneBk*)'|
A1main.cpp||undefined reference to `DisplayByName(phoneBk*)'|
A1main.cpp||undefined reference to `DisplayByPhone(phoneBk*)'|
A1main.cpp||undefined reference to `LoadDB(phoneBk*)'|
A1main.cpp||undefined reference to `StoreDB(phoneBk*)'|
A1main.cpp||undefined reference to `CompleteList(phoneBk*)'|
||=== Build finished: 9 errors, 0 warnings ===|
I don't want to paste the WHOLE assignment here, so I'll share only the important stuff, ask if there is other stuff you want to see:
Here is A1main.cpp this is the driver program for the other functions; my other files are called functions.h and functions.cpp
A1main.cpp:
phoneBk is a struct and staffArray is an array of phoneBk
My header file contains all the necissary includes and function prototypes.
Any ideas?
This post has been edited by l0ckz0r: 20 August 2009 - 04:01 PM

New Topic/Question
Reply




MultiQuote





|