ProcessIdToSessionId undeclared?
General and Desktop
6
Posts
3
Posters
3.8k
Views
1
Watching
-
Hello!
I have this problem when I try to compile...
@error: undefined reference to `ProcessIdToSessionId(unsigned long, unsigned long*)@8'@It is declared on winbase.h which is included in windows.h and I'm like wtf? is it the linker? I need some help with this please, I can't seem to go back to visual studio after using this sexy library + IDE :D
-
Because C and C++ mangle functions different (the same functions result in different symbol names).
See How to mix "C and C++":http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html.