I'm having a link error with MSVC++.
I have been using qsort successfully with a C program.
I'm now introducing some C++ code into this program as I need to use some other C++ routines with it - so I've changed the suffix to .cpp not .c
unfortunately MSVC++ now gives me a link error with I think is related to my use of qsort - C++ is more strict with qsort arguments than C ?
the error is
myprog.obj : error LNK2001: unresolved external symbol "int __cdecl comprows2(void const *,void const *)" (?comprows2@@YAHPBX0@Z)
Debug/myprog.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
where comprows2 is my qsort compare function
many thanks in advance