"unresolved external symbol _acedGetString"

"unresolved external symbol _acedGetString"

Anonymous
Not applicable
470 Views
3 Replies
Message 1 of 4

"unresolved external symbol _acedGetString"

Anonymous
Not applicable
hello,

I have created two objectARX-projects in VC++.
One of the two projects can be built (0 errors, 0 warnings), the other
can't (2 errors, 0 warnings).
However, they are EXACTLY the same (not a copy, but all files and
settings are the same)

The first project was an example included in the objectarx download file
(lab01), where I added some things to make it do what I needed, the
second project was created by me.
(I added my files to the example program to check if it would work
there, since I couldn't find an error)


this is the VC++ output:

--------------------Configuration: photogr - Win32 Debug--------------------
Linking...
Creating library Debug/photogr.lib and object Debug/photogr.exp
CreateFiles.obj : error LNK2001: unresolved external symbol _acedGetString
Debug/photogr.arx : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

photogr.arx - 2 error(s), 0 warning(s)


I thought that "unresolved external" would mean that the header file
needed for the function acedGetString (acedads.h) is not present, but
the file appears in the list of 'external dependencies'. Besides, it
would be very strange that the same program would sometimes need an
extra header file, and sometimes not...

And what does the warning mean?

Does anyone know what the problem might be?

thanx a lot in advance!!

geronimo
0 Likes
471 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Its not the header file you're missing, its the .lib file. Make sure you
reference it in your project settings and make sure the ObjectARX lib folder
is in your compiler's search path.

Why not use the ObjectARX Wizard to create your project - it does this all
for you.

Cheers,

Stephen Preston
Developer Technical Services
Autodesk



"geronimo" wrote in message
news:[email protected]...
> hello,
>
> I have created two objectARX-projects in VC++.
> One of the two projects can be built (0 errors, 0 warnings), the other
> can't (2 errors, 0 warnings).
> However, they are EXACTLY the same (not a copy, but all files and
> settings are the same)
>
> The first project was an example included in the objectarx download file
> (lab01), where I added some things to make it do what I needed, the
> second project was created by me.
> (I added my files to the example program to check if it would work
> there, since I couldn't find an error)
>
>
> this is the VC++ output:
>
> --------------------Configuration: photogr - Win32
Debug--------------------
> Linking...
> Creating library Debug/photogr.lib and object Debug/photogr.exp
> CreateFiles.obj : error LNK2001: unresolved external symbol _acedGetString
> Debug/photogr.arx : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.
>
> photogr.arx - 2 error(s), 0 warning(s)
>
>
> I thought that "unresolved external" would mean that the header file
> needed for the function acedGetString (acedads.h) is not present, but
> the file appears in the list of 'external dependencies'. Besides, it
> would be very strange that the same program would sometimes need an
> extra header file, and sometimes not...
>
> And what does the warning mean?
>
> Does anyone know what the problem might be?
>
> thanx a lot in advance!!
>
> geronimo
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
thanks! this was indeed the problem!
Actually, what is the difference between a library or a (set of) header
file(s)? (sorry for this C++ question, it's quite off-topic, I know)
And indeed, maybe I should use the Wizard...

geronimo

Stephen Preston wrote:

> Its not the header file you're missing, its the .lib file. Make sure you
> reference it in your project settings and make sure the ObjectARX lib folder
> is in your compiler's search path.
>
> Why not use the ObjectARX Wizard to create your project - it does this all
> for you.
>
> Cheers,
>
> Stephen Preston
> Developer Technical Services
> Autodesk
>
>
>
> "geronimo" wrote in message
> news:[email protected]...
>
>>hello,
>>
>>I have created two objectARX-projects in VC++.
>>One of the two projects can be built (0 errors, 0 warnings), the other
>>can't (2 errors, 0 warnings).
>>However, they are EXACTLY the same (not a copy, but all files and
>>settings are the same)
>>
>>The first project was an example included in the objectarx download file
>>(lab01), where I added some things to make it do what I needed, the
>>second project was created by me.
>>(I added my files to the example program to check if it would work
>>there, since I couldn't find an error)
>>
>>
>>this is the VC++ output:
>>
>>--------------------Configuration: photogr - Win32
>>
> Debug--------------------
>
>>Linking...
>> Creating library Debug/photogr.lib and object Debug/photogr.exp
>>CreateFiles.obj : error LNK2001: unresolved external symbol _acedGetString
>>Debug/photogr.arx : fatal error LNK1120: 1 unresolved externals
>>Error executing link.exe.
>>
>>photogr.arx - 2 error(s), 0 warning(s)
>>
>>
>>I thought that "unresolved external" would mean that the header file
>>needed for the function acedGetString (acedads.h) is not present, but
>>the file appears in the list of 'external dependencies'. Besides, it
>>would be very strange that the same program would sometimes need an
>>extra header file, and sometimes not...
>>
>>And what does the warning mean?
>>
>>Does anyone know what the problem might be?
>>
>>thanx a lot in advance!!
>>
>>geronimo
>>
>>
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
The quick answer is that header (.h) files provides definitions of the code
that is implemented and compiled in the library (.lib) files. I'm sure most
books on C++/VC++ will provide a more detailed explanation.

Cheers,

Stephen Preston
Developer Technical Services
Autodesk




"geronimo" wrote in message
news:[email protected]...
> thanks! this was indeed the problem!
> Actually, what is the difference between a library or a (set of) header
> file(s)? (sorry for this C++ question, it's quite off-topic, I know)
> And indeed, maybe I should use the Wizard...
>
> geronimo
>
> Stephen Preston wrote:
>
> > Its not the header file you're missing, its the .lib file. Make sure you
> > reference it in your project settings and make sure the ObjectARX lib
folder
> > is in your compiler's search path.
> >
> > Why not use the ObjectARX Wizard to create your project - it does this
all
> > for you.
> >
> > Cheers,
> >
> > Stephen Preston
> > Developer Technical Services
> > Autodesk
> >
> >
> >
> > "geronimo" wrote in message
> > news:[email protected]...
> >
> >>hello,
> >>
> >>I have created two objectARX-projects in VC++.
> >>One of the two projects can be built (0 errors, 0 warnings), the other
> >>can't (2 errors, 0 warnings).
> >>However, they are EXACTLY the same (not a copy, but all files and
> >>settings are the same)
> >>
> >>The first project was an example included in the objectarx download file
> >>(lab01), where I added some things to make it do what I needed, the
> >>second project was created by me.
> >>(I added my files to the example program to check if it would work
> >>there, since I couldn't find an error)
> >>
> >>
> >>this is the VC++ output:
> >>
> >>--------------------Configuration: photogr - Win32
> >>
> > Debug--------------------
> >
> >>Linking...
> >> Creating library Debug/photogr.lib and object Debug/photogr.exp
> >>CreateFiles.obj : error LNK2001: unresolved external symbol
_acedGetString
> >>Debug/photogr.arx : fatal error LNK1120: 1 unresolved externals
> >>Error executing link.exe.
> >>
> >>photogr.arx - 2 error(s), 0 warning(s)
> >>
> >>
> >>I thought that "unresolved external" would mean that the header file
> >>needed for the function acedGetString (acedads.h) is not present, but
> >>the file appears in the list of 'external dependencies'. Besides, it
> >>would be very strange that the same program would sometimes need an
> >>extra header file, and sometimes not...
> >>
> >>And what does the warning mean?
> >>
> >>Does anyone know what the problem might be?
> >>
> >>thanx a lot in advance!!
> >>
> >>geronimo
> >>
> >>
> >
> >
>
>
0 Likes