[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Link error, build 030521 solution
From: |
Nardy Pillards |
Subject: |
Re: [Bug-gnubg] Link error, build 030521 solution |
Date: |
Thu, 22 May 2003 11:50:31 +0200 |
From: "Øystein O Johansen" <address@hidden>
Sent: Thursday, May 22, 2003 8:43 AM
>
> > Linking changelog 1.1082 of 030521:
> >
> > openurl.o(.text+0x1e):openurl.c: undefined reference to `ShellExecute'
>
> Now I've tried it! Ignore my last message, Nardy! ;-)
>
> First add these lines to openurl.c:
>
> #ifdef WIN32
> #include <windows.h>
> #endif
>
> Then change the ShellExecute call ro read:
>
> ShellExecute(NULL, TEXT("open"), szURL, NULL, NULL, 0);
>
> At least this works on my system.
>
> -Øystein
I changed line #36 of openurl.c and on:
--------------------------
#ifdef WIN32
#include <windows.h>
extern void
OpenURL( const char *szURL ) {
ShellExecute(NULL, TEXT("open"), szURL, NULL, NULL, 0);
}
#else /* ! WIN32 */
-------------------------
to keep the orignal structure (and changed /* WIN32 */ to /* ! WIN32 */
-) )
It does work. Thank you Øystein.
Build 030521 will be published shortly
Nardy