X-From-Line: clanlib-devel-bounces+grumbel=gmx.net@clanlib.org Mon Sep 8 11:05:28 2003 Delivered-To: postmaster@penpen Received: from pop.gmx.net (213.165.64.20) by penpen with POP3 for ; 08 Sep 2003 11:05:28 -0000 Return-Path: X-Flags: 0000 Delivered-To: GMX delivery to grumbel@gmx.net Received: (qmail 2441 invoked by uid 65534); 8 Sep 2003 11:04:55 -0000 Received: from vacuum1.xentive.com (EHLO vacuum1.xentive.com) (195.249.47.163) by mx0.gmx.net (mx017) with SMTP; 08 Sep 2003 13:04:55 +0200 Received: (qmail 3233 invoked from network); 8 Sep 2003 11:04:52 -0000 Received: from unknown (HELO dark.clansoft.dk) (217.116.224.121) by 192.168.2.2 with RC4-SHA encrypted SMTP; 8 Sep 2003 11:04:52 -0000 Received: from dark.clansoft.dk ([127.0.0.1] ident=list) by dark.clansoft.dk with esmtp (Exim 4.22) id 19wJb3-0004aR-Nz for grumbel@gmx.net; Mon, 08 Sep 2003 12:50:13 +0200 Received: from smtpzilla3.xs4all.nl ([194.109.127.139]) by dark.clansoft.dk with esmtp (Exim 4.22) id 19wJar-0004ZD-Do for clanlib-devel@clanlib.org; Mon, 08 Sep 2003 12:50:01 +0200 Received: from xs4all.nl (lindeijer.xs4all.nl [80.126.228.195]) by smtpzilla3.xs4all.nl (8.12.9/8.12.9) with ESMTP id h88AGtE7051796 for ; Mon, 8 Sep 2003 12:17:00 +0200 (CEST) X-Gnus-Mail-Source: file:/home/ingo/.procmaildir/incoming Message-ID: <3F5C5711.1050805@xs4all.nl> Date: Mon, 08 Sep 2003 12:16:49 +0200 From: =?ISO-8859-1?Q?Bj=F8rn_Lindeijer?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: clanlib-devel@clanlib.org Subject: Re: [Clanlib-devel] Error when compiling ClanLib References: <3F5BC11C.6020602@student.rug.nl> <20030908081041.GA12095@dark.clansoft.dk> In-Reply-To: <20030908081041.GA12095@dark.clansoft.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtpzilla3.xs4all.nl id h88AGtE7051796 X-BeenThere: clanlib-devel@clanlib.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: clanlib-devel@clanlib.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: clanlib-devel-bounces+grumbel=gmx.net@clanlib.org Errors-To: clanlib-devel-bounces+grumbel=gmx.net@clanlib.org X-GMX-Antivirus: -1 (not scanned, may not use virus scanner) X-GMX-Antispam: 0 (Mail was not recognized as spam) X-Spam-Status: No, hits=-2.6 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Status: O X-Content-Length: 1139 Lines: 41 Xref: penpen.localdomain ClanLib.Devel:6970 Thanks a lot, that worked fine. Reporting succesfull compile of ClanLib=20 0.7.3 on my current system for at least the following modules: clanApp, clanCore, clanDisplay, clanGL, clanGUI, clanGUIStyleBoring,=20 clanGUIStyleSilver, clanNetwork, clanSignals and clanSound. I couldn't try clanMikMod and clanVorbis because compiling MikMod and=20 LibOGG didn't work somehow. Bye for now, Bj=F8rn Magnus Norddahl wrote: > Quoting Bj=F8rn Lindeijer (t.lindeijer@student.rug.nl): >=20 >=20 >>Sources/Core/System/Win32/cl_library.cpp:60: invalid conversion from=20 >>`int (*)() >> ' to `void*' >=20 >=20 > Just looked at the MSDN docs for GetProcAddress, and yes, it returns a > FARPROC which is a typedef for an int(*)(). >=20 > I wonder why MSVC didnt even make a warning about this. :) >=20 > Anyways, you solve the problem by simply adding a cast to a (void *): >=20 > void *adr =3D (void *) GetProcAddress(handle,symbol.c_str()); >=20 > I've committed a fix for this to cvs. >=20 _______________________________________________ Clanlib-devel mailing list Clanlib-devel@clanlib.org http://clanlib.org/mailman/listinfo/clanlib-devel