|
From: Coosa <co...@gm...> - 2003-11-23 13:40:20
|
Hello all, =20 When I compile certain files within a project and get the object files = after a successful compilation I can later use the .o files and delete the oroginal .cpp files and just inlcude the header file for the function declarations. However I wish o be able to use my object files without being imposed to create a project! For example: Suppose I created a project called project.dev and I included to my = project A.cpp, A.h and main.cpp Afetr compilation I've got also now A.o and main.o to my project. I can delete A.cpp and includde the A.o to the object files under = project options -> parameters -> linker, no problem with that. =20 Now, I wish to use both A.h and A.o without including them to a project! This means to put them in the default include directory under C:\Dev-Cpp\include and under C:\Dev-Cpp\lib repectively. Then when I = create a normal source file ( not a project ) I wish to simpley include the A.h = and use the functions in it! When I do this get :=20 [Linker error] undefined reference to `..' Can some one help me please how to configure such issues? =20 Bets regards =20 Coosa |