c++ - error LNK2019 + fatal error LNK1120 when using additional include directories -
this question similar 1 asked yesterday
error lnk2019 + fatal error lnk1120
that answered comprehensively (even though turned out duplicate).
to solve round problem added missing files header files , source files in project explorer using
add existing item...
(i using visual studio 2008).
however able add together these files in different way using:
project properties->general->include additional directories
and adding location binmodel01.h , binmodel01.cpp stored.
but unfortunately not seem work?
(obviously 1 or 2 files doesn't create lot of difference bigger projects become pain!)
i same errors getting before? (in fact configuration caused original errors).
i adding right "additional directories"?
so have else other add together additional directories? (it seem so).
thanks
baz
lnk2019: http://msdn.microsoft.com/en-us/library/799kze2z.aspx
from site: "unresolved external symbol 'symbol' referenced in function 'function'"
this means using function or variable declared not defined. see .h file, not .cpp. in situation means haven't added .cpp files project, or not compiling them.
you can't add together whole folder project, need add together each file need (but can add together more files @ once).
"additional include directories" means folders vs in headers in #include statements.
c++ visual-c++
No comments:
Post a Comment