Hi Kai,
> After compiling the project with vs2005 I get an error:
>
[quoted text clipped - 6 lines]
> Concerning to that error message I forgot to define a header or is
> there anything else incorrect in my code?
The header with the prototype seems to be in place, otherwise the compiler
would have told you
> This is the method the compiler obviously doesn't like:
According to your error description the linker is giving the error, not the
compiler, right?
> const errno_t mstrcpy(char* dest, size_t len, char* src)
> {
[quoted text clipped - 8 lines]
>
> }
The above is defined in a cpp or c file, right? I guess you forgot to add
that cpp or c file to your project, hence the linker does not find the
implementation.
--
SvenC
Kai - 08 Sep 2007 10:31 GMT
> Hi Kai,
>
[quoted text clipped - 36 lines]
> --
> SvenC
Would be a simple result but unfortunately it wasn't that easy. Header
files are added to project.
By the way it's a cpp project.
SvenC - 08 Sep 2007 10:44 GMT
Hi Kai,
>> Hi Kai,
>>
[quoted text clipped - 28 lines]
> Would be a simple result but unfortunately it wasn't that easy. Header
> files are added to project.
The header is not the problem, that holds only the declaration. The problem
is the missing definition of mstrcpy.
Where is the definition? Is it a cpp which is part of the project or is it a
separate lib?
If it is a separate lib then you have to add it to
Project->Properties->Linker.
> By the way it's a cpp project.
What is a cpp project?
--
SvenC
Kai - 08 Sep 2007 12:02 GMT
> Hi Kai,
>
[quoted text clipped - 44 lines]
> --
> SvenC
By writing cpp project I do mean a visual studio c++ project
solutiion.
the definition was wrong:
definition had char*, int, char* as parameters and the method required
char*, size_t, char*
a real beginner fault. embarrassing for me...
thank you for your help.
Cya
Kai