KpyM Telnet/SSH Server - Forum
v1.17 compile error
rbruder v1.17 compile error
 
I'm trying to compile the kpym source on Server 2003 with visual studio 2008 professional edition.

compiling session gave me some issues.


I get the following error in session.obj.

Error 1 error LNK2019: unresolved external symbol _NetUserChangePassword@16 referenced in function "public: static unsigned long __cdecl KWinsta::ChangePassword(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?ChangePassword@KWinsta@@SAKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@000@Z) session.obj session

and this error in session.exe

Error 2 fatal error LNK1120: 1 unresolved externals D:\Projects\KPYM\Debug\session.exe session


I believe the problem comes when trying to access the NetUserChangePassword function in LMaccess.h

Any help would be appreciated.

Thanks,
Rob


rbruder
 
this can be fixed by adding netapi32.lib to the project.

1.) select the properties for the session project
2.) Navigate to Configuration Properties -> Linker -> input
3.) add netapi32.lib to Additional Dependencies.
4.) Compile


Kroum Grigorov
 
I'm using VS2008 Express and I work with Release version only.
So anyone having problems with the Debug build(I think this is the default when you start the solution for the first time), you can have a look at the settings in Release and copy them in Debug as well(these should be missing libs only, as in the case).

Kroum


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group