Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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

 
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);






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.