View Full Version : error LNK2001: unresolved external symbol

10-17-2002, 05:24 AM
i am working with OpenInventor and now have
to implement some OpenGL functions of a particle API. the includes are fine and i added the .dll. i also wrote the path in the directory-options as usual.
error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl pGenParticleGroups(int,int)" (__imp_?pGenParticleGroups@@YAHHH@Z)

pGenParticleGroups is the function i want to call.

any idea?

10-17-2002, 10:12 PM
Hi !

Check the docuemntation for pGenParticleGroups and see what library it should exists in, if I remember correct OI has a number of libraries and if you get an unresolved external there are usually 2 things to look for:

1. Have you added the library that defines the function ?

2. Have you included the correct header file so that the function call gets declared correct.