Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linking ASN.1 - components in C ++ - error LNK2001-

13 views
Skip to first unread message

eberesche

unread,
Sep 20, 2006, 3:41:58 PM9/20/06
to
Hello, as a novice in ASN.1 I have me to a project in C ++ under use of
ASN.1 - structures risquély. One of my colleagues means, this would
deal something with masochism ;-). Result should be a DLL which
provides the exchange of documents between a DMS and a remote data
base. My developing environment is MSVS v.7.1, and the ASN.1 - source
texts are generated with the compiler asn1c-0.9.20. Therefore I have in
the project cpp-, as well as c - source texts. With the left I receive
the following mistake lines:

------ Build started: Project: testext, Configuration: Debug Win32
------

Linking...
EuroCents.obj : error LNK2001: unresolved external symbol
_asn_DEF_INTEGER
Success.obj : error LNK2001: unresolved external symbol
_asn_DEF_INTEGER
YEARS.obj : error LNK2001: unresolved external symbol _asn_DEF_INTEGER
Success.obj : error LNK2001: unresolved external symbol
_SEQUENCE_encode_xer@24
Success.obj : error LNK2001: unresolved external symbol
_SEQUENCE_decode_xer@24
Success.obj : error LNK2001: unresolved external symbol
_SEQUENCE_encode_der@24
Success.obj : error LNK2001: unresolved external symbol
_SEQUENCE_decode_ber@24
Success.obj : error LNK2001: unresolved external symbol
_SEQUENCE_constraint@16
Success.obj : error LNK2001: unresolved external symbol
_SEQUENCE_print@20
Success.obj : error LNK2001: unresolved external symbol
_SEQUENCE_free@12
VarID.obj : error LNK2001: unresolved external symbol
_SEQUENCE_OF_encode_xer@24
VarID.obj : error LNK2001: unresolved external symbol
_SET_OF_decode_xer@24
VarID.obj : error LNK2001: unresolved external symbol
_SEQUENCE_OF_encode_der@24
VarID.obj : error LNK2001: unresolved external symbol
_SET_OF_decode_ber@24
VarID.obj : error LNK2001: unresolved external symbol
_SET_OF_constraint@16
VarID.obj : error LNK2001: unresolved external symbol _SET_OF_print@20
VarID.obj : error LNK2001: unresolved external symbol _SET_OF_free@12
VarID.obj : error LNK2001: unresolved external symbol
_asn_DEF_NumericString
VarID.obj : error LNK2019: unresolved external symbol __asn_i_log_error
referenced in function _memb_NumericString_constraint_1@16
Debug/testext.exe : fatal error LNK1120: 17 unresolved externals

Build log was saved at
"file://c:\Share\dmstest\testext\Debug\BuildLog.htm"
testext - 20 error(s), 0 warning(s)

I have worked through a big number of news and discussions, but have
found no suitable solution. Can somebody give me a few tips which help
me at short notice?

Many thanks beforehand

lio...@gmail.com

unread,
Sep 21, 2006, 3:57:18 AM9/21/06
to

eberesche wrote:
> Hello, as a novice in ASN.1 I have me to a project in C ++ under use of
> ASN.1 - structures risquély. One of my colleagues means, this would
> deal something with masochism ;-). Result should be a DLL which
> provides the exchange of documents between a DMS and a remote data
> base. My developing environment is MSVS v.7.1, and the ASN.1 - source
> texts are generated with the compiler asn1c-0.9.20. Therefore I have in
> the project cpp-, as well as c - source texts. With the left I receive
> the following mistake lines:
>
> ------ Build started: Project: testext, Configuration: Debug Win32
> ------
>
> Linking...
> EuroCents.obj : error LNK2001: unresolved external symbol
> _asn_DEF_INTEGER

This means that you have not included INTEGER.c file into compilation.

> Success.obj : error LNK2001: unresolved external symbol
> _SEQUENCE_encode_xer@24

This means that you have not encluded constr_SEQUENCE.c into
compilation.

> VarID.obj : error LNK2001: unresolved external symbol
> _SEQUENCE_OF_encode_xer@24

This means that you have not encluded constr_SEQUENCE_OF.c into
compilation.

> VarID.obj : error LNK2001: unresolved external symbol
> _SET_OF_decode_xer@24

This means that you have not encluded constr_SET_OF.c into compilation.

> VarID.obj : error LNK2001: unresolved external symbol
> _asn_DEF_NumericString

This means that you have not encluded NumericString.c into compilation.

> I have worked through a big number of news and discussions, but have
> found no suitable solution. Can somebody give me a few tips which help
> me at short notice?

You might want to ask the asn1c support forum on SourceForge:

http://sourceforge.net/forum/forum.php?forum_id=357921

--
lionet

eberesche

unread,
Sep 24, 2006, 3:20:12 PM9/24/06
to

lio...@gmail.com schrieb:

Hello lionet,
the gordic node is released :-)
my mistakes:
- ws2_32.lib was not put down
- /Configuration Properties / C, C ++ / Advanced - Settings confusedly

thank you very much

0 new messages