L
Lee
Hi Everyone,
I have a question on an error I got from compiling some test C++ code
in VS2005 that I had originally written in C in VC++ 6.0
In the original C test code I have my source broken up into two .c
files. One file (main.c) contains an array of procedures and above
that the procedures' prototypes. The other file contains the actual
procedure. This compiles just fine.
In the new C++ code in VS2005, this produces an error:
-> Error 1 error LNK2005: _FileID already defined in Main.obj
If I remove the prototype then the array complains that the procedures
are not defined. I am at a loss on how to proceed. (I guess this is
what I get for comming from a Java/C# background ;-Þ)
Thanks in advance,
L. Lee Saunders
I have a question on an error I got from compiling some test C++ code
in VS2005 that I had originally written in C in VC++ 6.0
In the original C test code I have my source broken up into two .c
files. One file (main.c) contains an array of procedures and above
that the procedures' prototypes. The other file contains the actual
procedure. This compiles just fine.
In the new C++ code in VS2005, this produces an error:
-> Error 1 error LNK2005: _FileID already defined in Main.obj
If I remove the prototype then the array complains that the procedures
are not defined. I am at a loss on how to proceed. (I guess this is
what I get for comming from a Java/C# background ;-Þ)
Thanks in advance,
L. Lee Saunders