Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #66997

Re: minGW problem - linking

From Lőrinczy Zsigmond <zsiga@nospam.for.me>
Newsgroups comp.lang.c
Subject Re: minGW problem - linking
Date 2015-08-08 10:27 +0200
Organization Aioe.org NNTP Server
Message-ID <mq4eki$3dr$1@speranza.aioe.org> (permalink)
References <mq38qh$mvs$1@dont-email.me> <mq412f$a0s$1@speranza.aioe.org>

Show all headers | View raw


> Or specify the dll in itself:
> gcc -o myexe.exe myexe.o C:\Users\Owner\SDL2-2.0.3\lib\x64\SDL2.dll

Note: Using filenames like SDL2-2.0.3\lib\x64 is not very portable
(e.g. you might change versions later).

Programs like 'junction' or 'mklink' can create symlinks
that make this a bit more elegant:

cd \users\owner
mklink /d sdl2 sdl2-2.0.3
cd sdl2
mklink /d lib64 lib\x64
...
gcc -o myexe.exe myexe.o C:\Users\Owner\SDL2\lib64\SDL2.dll

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

minGW problem - linking bilsch <bilsch01@gmail.com> - 2015-08-07 14:45 -0700
  minGW problem - linking "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-08-07 17:53 -0700
    Re: minGW problem - linking bilsch <bilsch01@gmail.com> - 2015-08-07 18:56 -0700
  Re: minGW problem - linking Lőrinczy Zsigmond <nospam@for.me> - 2015-08-08 06:37 +0200
    Re: minGW problem - linking bilsch <bilsch01@gmail.com> - 2015-08-07 23:40 -0700
    Re: minGW problem - linking Lőrinczy Zsigmond <zsiga@nospam.for.me> - 2015-08-08 10:27 +0200
  Re: minGW problem - linking James Kuyper <jameskuyper@verizon.net> - 2015-08-08 11:28 -0400
    Re: minGW problem - linking bilsch01 <king621@comcast.net> - 2015-08-08 16:07 -0700

csiph-web