> Hi Ben
>
> I tryed *.cc But then I get a lot of errors from the linker like "The
> function A is defined in both file X and Y"
Linker? I thought you were just compiling.
What are files X and Y, and where is function A really (in X, in Y, in a
header file, etc.)?
> Torben
>
[quoted text clipped - 11 lines]
>>
>>> Thanks Torben
Torben Laursen - 24 Nov 2006 16:33 GMT
Hi Ben
Well it is nice to be able to both compile and link the project.
This is an example of the error:
Error 16 error LNK2005: _SetMixture@36 already defined in BaseCalc.obj
Dll_SetMixture.obj
Error 9 error LNK2005: _SetMixtureKij@28 already defined in BaseCalc.obj
Dll_SetMixture.obj
basecalc.cpp includes dll_setmixture.cc
If the type of dll_setmixture is changes th "h" it links fine but then I
cannot compile the file alone
Torben
>> Hi Ben
>>
[quoted text clipped - 21 lines]
>>>
>>>> Thanks Torben
Ben Voigt - 24 Nov 2006 16:42 GMT
> Hi Ben
>
[quoted text clipped - 7 lines]
>
> basecalc.cpp includes dll_setmixture.cc
.cc files are standalone, not meant to be #include from other files.
C++ source files are usually .cpp on windows or multi-platform projects, and
.C or .cc on unix. But they are all the same (except .C can't be used on
windows because of case insensitivity).
> If the type of dll_setmixture is changes th "h" it links fine but then I
> cannot compile the file alone
[quoted text clipped - 26 lines]
>>>>
>>>>> Thanks Torben