c++ - error LNK2019: unresolved external symbol "CFunctionName" referenced in function "public: long __cdecl cObjectClass::MemberFunc(argumentss) -


details:
trying call function defined in .c file member function in .cpp file. getting linking error unresolved external symbol.
below details:

i using microsoft visual studio 2010. in solution have created 3 projects. lets project1,project2 & project3. out of project 2 & 3 of configuration type (static library (.lib) ) , project1 of configuration type dynamic library (.dll).

in project2 have foo.c file in have defined function return_type foo(args) , have declared in foo.h file.

in project1 have foo.cpp file in have class name cfooclass has 1 of member function cfoomemberfunction. calling foo(c function) member function. have added project2.lib , project3.lib libraries in dependencies of project1 , have included foo.h file(with extern "c") in foo.cpp. still getting error unresolved external symbol.

can me this?


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -