little problem

Posts 110 of 10 · Page 1 of 1
little problem
trying to get 2 functions in 2 .cpp's

have the function in ADE32.cpp, but i also need it to be in the main .cpp

tried putting it in a .h and including it in both, or defining it in both .cpp's, but it says already defined in the .obj files

little weird, never ran into this

need to solve this in order to actually test out my no fall damage so i can put the finishing touches on it and put it on beta.
You can't compile an application that has two functions with the same name and arguments. The linker wouldn't be able to tell which is which. You put the function in only one cpp file and use and h file to let your other cpp files know what the function is.
Right, thanks
/dumbazz
Use extern
@Wilds
C++ doesn't allow for overloading of functions and procedures? Delphi does :P
i thought you had a VIP you should know this then if your a real coder
Quote Originally Posted by nucks View Post
i thought you had a VIP you should know this then if your a real coder
u obviously didnt read my post
just make a .h and put everything into it and name it functions.h and include it in every file
Quote Originally Posted by Wilds View Post
(signature quote) Languages-
C++ (Extremely experienced)
It's been solved. Don't post anything else
Posts 110 of 10 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?