Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


problem with compiling program

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Negima
I post too much
Reputation: 6

Joined: 22 May 2007
Posts: 2220

PostPosted: Sat Dec 20, 2008 9:33 pm    Post subject: problem with compiling program Reply with quote

When I try to compule my program I get this error
Code:
------ Build started: Project: NegiClicker V2, Configuration: Debug Win32 ------
Compiling...
NegiClicker V2.cpp
Compiling resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
NegiClicker V2.obj : error LNK2028: unresolved token (0A000328) "extern "C" void __stdcall mouse_event(unsigned long,unsigned long,unsigned long,unsigned long,unsigned long)" (?mouse_event@@$$J220YGXKKKKK@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
NegiClicker V2.obj : error LNK2019: unresolved external symbol "extern "C" void __stdcall mouse_event(unsigned long,unsigned long,unsigned long,unsigned long,unsigned long)" (?mouse_event@@$$J220YGXKKKKK@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
C:\Users\Joseph\Documents\Visual Studio 2008\Projects\NegiClicker V2\Debug\NegiClicker V2.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Users\Joseph\Documents\Visual Studio 2008\Projects\NegiClicker V2\NegiClicker V2\Debug\BuildLog.htm"
NegiClicker V2 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I remember someone told me how to fix it long ago in my settings, but I forgot how
Back to top
View user's profile Send private message Visit poster's website
BirdsEye
Advanced Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 94

PostPosted: Sat Dec 20, 2008 9:53 pm    Post subject: Reply with quote

Try linking against user32.lib:
Code:

#pragma comment(lib, "user32.lib")
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Dec 20, 2008 9:57 pm    Post subject: Reply with quote

hint: MSDN tells you the required library
Back to top
View user's profile Send private message
Negima
I post too much
Reputation: 6

Joined: 22 May 2007
Posts: 2220

PostPosted: Sat Dec 20, 2008 10:03 pm    Post subject: Reply with quote

BirdsEye wrote:
Try linking against user32.lib:
Code:

#pragma comment(lib, "user32.lib")
ty
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites