ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

include part two

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
130 Views, 2 Replies

include part two

Still have problems when I want to include a headerfile.

When I add -#include "stdafx.h" - at the top of the file 'Mysub.cpp', I
get an error

(error LNK2019 unresolved external symbol).

When I don't add -#include "stdafx.h" - at the top of the file 'Mysub.cpp',
I get an error

(fatal error LNKC1010: unexpected end of file while looking for precompiled
header directive.

This drives me crazy.


--
Greetz,

Giuliano
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

The Error 'error LNK2019 unresolved external symbol' occurs when the linker
finds the declaration(signature) of a function, variable or class but it
fails to find the implementation of it.
So, all you have to do is to find the implementation and link it.(either
'.obj' or '.lib')


"Giuliano Lodts" wrote in message
news:F2070277CF499CF8F444D036FBC52F46@in.WebX.maYIadrTaRb...
> Still have problems when I want to include a headerfile.
>
> When I add -#include "stdafx.h" - at the top of the file 'Mysub.cpp', I
> get an error
>
> (error LNK2019 unresolved external symbol).
>
> When I don't add -#include "stdafx.h" - at the top of the file
'Mysub.cpp',
> I get an error
>
> (fatal error LNKC1010: unexpected end of file while looking for
precompiled
> header directive.
>
> This drives me crazy.
>
>
> --
> Greetz,
>
> Giuliano
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Did you accidentally remove StdAfx.h or StdAfx.cpp from your ArxProject? If
you created your ArxProject with ObjectArx wizard, it should automatically
create those 2 files.

Joseph

"Giuliano Lodts" wrote in message
news:F2070277CF499CF8F444D036FBC52F46@in.WebX.maYIadrTaRb...
> Still have problems when I want to include a headerfile.
>
> When I add -#include "stdafx.h" - at the top of the file 'Mysub.cpp', I
> get an error
>
> (error LNK2019 unresolved external symbol).
>
> When I don't add -#include "stdafx.h" - at the top of the file
'Mysub.cpp',
> I get an error
>
> (fatal error LNKC1010: unexpected end of file while looking for
precompiled
> header directive.
>
> This drives me crazy.
>
>
> --
> Greetz,
>
> Giuliano
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost