Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 31st, 2007, 04:42 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compiler linker error

Hi,
I had this error message:

c:\program files\brew 3.1.5\sdk\inc\aeemodgen.h(95) : error C2375: 'AEEMod_Load' : redefinition; different linkage
c:\program files\brew 3.1.5\sdk\inc\aeestdlib.h(288) : see declaration of 'AEEMod_Load'

I also examined my AEEModGen.h file, i found this line

__declspec(dllexport) int AEEMod_Load(IShell *ps, void * ph, IModule ** pMod);

I also examined the AEEStdLib.h file too

extern int AEEMod_Load(IShell *ps, void * pszRes, IModule ** pm);

i clicked my error message and it redirects me to this two line, but still i am not able to fix the bug, please help me.

Thanks
V.Raja

Reply With Quote
  #2 (permalink)  
Old June 6th, 2007, 11:17 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have to import the dll method in AEEStdLib.h.
__declspec(dllimport) AEEMod_Load(IShell *ps, void * pszRes, IModule ** pm);


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker Error, Chapter 18 Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 4 February 20th, 2008 05:04 AM
Linker error.help s_srivi1 Access VBA 4 November 12th, 2007 02:54 AM
[Linker error] undefined reference philArmstead BOOK: Professional C++ 7 October 9th, 2005 05:40 PM
linker error while calling fortran from c rony C# 0 August 2nd, 2005 07:52 AM
linker error smukher Visual C++ 2 July 2nd, 2003 06:10 PM



All times are GMT -4. The time now is 06:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.