error LNK2001: unresolved external symbol

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?

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.