I have A.h
and A.lib
. My project links to A
in the sense that the path to A.lib
is added into "additional libraries" path in visual studio (in "linker, general"), and A.lib
is added in "linker input" in visual studio. All header and source files are in the same project.
Now, I have B.h
and B.cpp
. The latter includes B.h
that includes A.h
, and a function f
declared in B.h
has its definition in B.cpp
that uses a function g
declared in A.h
.
At build, I have the following error message :
error LNK2019: unresolved external symbol g referenced in function f
and I don't understand why this happens, accounting on the library linking I performed described above.
I added the tag xll
because my problem happens in an xll context, and because this issue may be classic in an xll context. For xll people :
A.h
isXLCALL.h
,A.lib
isXLCALL32.lib
B.h
isFRAMEWRK.h
andB.cpp
isFRAMEWRK.cpp
f
is for instance_TempActiveRef12
andg
is_Excel12
(orf is
_Excel12fand
gis
_Excel12v@16`)