* gcc and windows api
@ 1997-10-13 19:00 Jonathan R. Seagrave
0 siblings, 0 replies; only message in thread
From: Jonathan R. Seagrave @ 1997-10-13 19:00 UTC (permalink / raw)
To: gnu-win32
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@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@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-10-13 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-13 19:00 gcc and windows api Jonathan R. Seagrave
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).