|
-
January 31st, 2003, 09:51 AM
#1
header definitions question (extern "C")
i´m compiling a c++ program which uses some C libraries (pc.h, bios.h) in GCC 3.2 and the linker fails with "multiple redefinition" error in many of my program functions (seems a conflict between .cpp and .h files)
what is #ifdef c_plus_plus and extern "c"?
can be avoided the problem with this definitions?
thank you.
also, give some recommendation on general .h and .cpp coding conventions such as using, for example,
#ifndef __PROG_H__
#include __PROG_H__
#endif
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|