Home Corporate Contacts TETware Knowledgebase |
ProductsSolutionsInformationDatasheetDocumentationFAQKnowledgebase |
Return to Knowledgebase Index17. How to link the tet_main() function when using the C++ API
Question When I build a child process that contains a
Linking... libapi.lib(child.obj) : error LNK2001: unresolved external symbol _tet_main Debug/x.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. x.exe - 2 error(s), 18 warning(s) My program heading looks like this: int tet_main(int argc, char **argv) { ..... } Answer When you use the C++ API, your
For example: extern "C" { int tet_main(int argc, char ** argv) { // whatever you want here } }
See also
|