aMule Forum

English => Compilation problems => Topic started by: woutermense on September 23, 2008, 03:28:57 PM

Title: SVN20080923 amulegui VS link error
Post by: woutermense on September 23, 2008, 03:28:57 PM
Visual Studio fails to link amulegui in the final stage.
Code: [Select]
15>Compiling resources...
15>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
15>Copyright (C) Microsoft Corporation.  All rights reserved.
15>Linking...
15>LINK : C:\Documents and Settings\wouter\Desktop\aMule\amule-cvs\MSVC Solution\Debug\aMuleGUI.exe not found or not built by the last incremental link; performing full link
15>HTTPDownload.obj : error LNK2001: unresolved external symbol "int const wxEVT_CORE_FINISHED_HTTP_DOWNLOAD" (?wxEVT_CORE_FINISHED_HTTP_DOWNLOAD@@3HB)
15>C:\Documents and Settings\wouter\Desktop\aMule\amule-cvs\MSVC Solution\Debug\aMuleGUI.exe : fatal error LNK1120: 1 unresolved externals
15>Build log was saved at "file://c:\Documents and Settings\wouter\Desktop\aMule\amule-cvs\MSVC Solution\aMuleGUI\Debug\BuildLog.htm"
15>aMuleGUI - 2 error(s), 257 warning(s)
Title: Re: SVN20080923 amulegui VS link error
Post by: Stu Redman on September 23, 2008, 10:04:59 PM
Fixed tomorrow, thanks for reporting. (Only MSW without GeoIP was involved.)
BtW: you usually should compile it as Release. You can still debug it if you want to, but get much better performance.
Title: Re: SVN20080923 amulegui VS link error
Post by: woutermense on September 23, 2008, 10:43:46 PM
Should I be testing with GeoIP? If so, how can I do that?

I'll only be compiling Release versions from now on, thanks for the tip.

edit: found the update in wiki about GeoIP

edit2: in SVN20080924 the libGeoIP project file is not added to the solution. I added it under external libraries. I added ;ENABLE_IP2COUNTRY to the amule project as well as the amulegui project, and set both their dependencies to include libGeoIP. Compiles just fine now
Title: Re: SVN20080923 amulegui VS link error
Post by: Stu Redman on September 25, 2008, 08:17:44 PM
Fine!
There are two solutions actually, one for the professional edition only (aMule-MSVC) and one which also works with the Express Edition (aMule-MSVCE). I think I've added the lib only to the latter.
GeoIP displays the nice little flags, no more, no less.  If you want them, use it, if you don't you lose nothing if you build it without. For the remote GUI it's not as useful as for the monolith since the sources can't be displayed yet.
Title: Re: SVN20080923 amulegui VS link error
Post by: woutermense on September 26, 2008, 12:25:37 PM
Yeah I mostly use the remote GUI, but I try to test the monolith as well sometimes.
Are there also no flags displayed for servers & uploads in the remote gui?
Title: Re: SVN20080923 amulegui VS link error
Post by: Stu Redman on September 26, 2008, 05:23:35 PM
Yes. But I use KAD only, so it's only uploads for me.  ;)