+1
0
-1

multiple definition of `VCAST_main' ERROR

Hello,

I have two files .c. Eg: core.c and server.c
In both files .c, there is a function main. Eg: SI_32 main(const SI_32 const argc_main, const UI_8 **const argument_v);

When...

Posting in: 

2 Answers:

+1
0
-1

Hello Carlos,

VC has to create a test harness for it all. The two 'mains' is an issue for the linker and of course linkers don't allow multiple definitions.

However VC can help out....

+1
0
-1

Thank you very much. Now, the environment works correctly.