delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/13/23:50:28

From: jrs AT belltc DOT ctc DOT edu (Jonathan R. Seagrave)
Subject: gcc and windows api
13 Oct 1997 23:50:28 -0700 :
Message-ID: <Pine.LNX.3.95.971013165438.28780A-100000.cygnus.gnu-win32@argonaut>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I have the following test program and when I compile it with the
cygnus-win gcc compiler  <http://www.cygnus.com/misc/gnu-win32/>
gcc version cygnus-2.7.2-970404

this is what happens when I compile:

> gcc bg.c
C:\WINDOWS\TEMP\cc0010001.o(.text+0x20):bg.c: undefined reference to
'SystemParametersInfoA AT 16'
GCC.EXE: Internal compiler error: program ld got fatal signal 1

can anyone tell me what I might do to get gcc to compile this simple
program?  thanks.


/*
    BOOL SystemParametersInfo(
        UINT uiAction,          // system parameter to query or set
        UINT uiParam,           // depends on action to be taken
        PVOID pvParam,          // depends on action to be taken
        UINT fWinIni            // user profile update flag
     );
 */

#include <windows.h>
#include <stdlib.h>
#include <stdio.h>

int main () {
    SystemParametersInfo(
        SPI_SETDESKWALLPAPER,
        0,
        "test.bmp",
        SPIF_UPDATEINIFILE
    );
}



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019