# Unable to compile libraries

**URL:** <https://discourse.glfw.org/t/unable-to-compile-libraries/155>\
**Category:** support\
**Created:** [April 1, 2004, 9:53pm UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155 "2004-04-01T21:53:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 1, 2004, 9:53pm UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/1 "2004-04-01T21:53:53Z")

</div>

**nobody** wrote on [Thursday, April 01, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac):

I am unable to compile the GLFW libraries for Win32 MingW. While I’ve never compiled from the command line before, I’m fairly sure I’m doing it correctly.

I can see the list of supported compilers, and can run ‘make win32-mgw’ without errors, but no files are created.

Any ideas? Or is there somewhere I can download precompiled libraries?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 2, 2004, 6:34am UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/2 "2004-04-02T06:34:20Z")

</div>

**[kohaistyle](https://sourceforge.net/u/kohaistyle/)** wrote on [Friday, April 02, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/bb3f):

have you looked in the lib directory where you decompiled the GLFW archive ??

This is where you should find the compiled libs, if you use the supplied makefile.

You should find 3 important files :

- gflw.lib  
- glfwdll.lib  
- glfw.dll

If you don’t find them there, can you give us more hints about your setup, it might just be a path problem.

Keep up

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 3, 2004, 12:29am UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/3 "2004-04-03T00:29:32Z")

</div>

**nobody** wrote on [Saturday, April 03, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/5cae):

I have extracted the archive to c:\dev\glfw\_temp.

I copied the make.exe file from my Dev-C++ bin folder into c:\dev and ran it via a console window (command line).

There were no ‘lib’ or ‘dll’ files created.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 4, 2004, 7:37pm UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/4 "2004-04-04T19:37:06Z")

</div>

**[marcus256](https://sourceforge.net/u/marcus256/)** wrote on [Sunday, April 04, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/9e83):

Could you elaborate "without errors"? When you compile (type make win32-mgw), you should see a bunch of lines telling which files are compiled. The first couple of lines read like this on my system:

make[1]: Entering directory `F:/projekt/glfw/CVS/glfw/lib/win32’  
gcc -c -I. -I… -Wall -Os -o enable.o …\\enable.c  
gcc -c -I. -I… -Wall -Os -o fullscreen.o …\\fullscreen.c

Just a guess: have you set the PATH variable correct? Either do it in the environment variables (hard to find setting under Windows), or do:

set PATH=%PATH%;C:\Path\To\DevCpp\bin

(or similar) on the command line (you have to do it every time you start a new command prompt). You shouldn’t have to copy make.exe, it should be in the PATH.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 4, 2004, 10:09pm UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/5 "2004-04-04T22:09:44Z")

</div>

**nobody** wrote on [Sunday, April 04, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/9b32):

I have made the dev\bin directory a PATH.

When I say no errors, I actually mean no feedback at all. Nothing if printed. It does nothing.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 5, 2004, 2:56pm UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/6 "2004-04-05T14:56:40Z")

</div>

**[marcus256](https://sourceforge.net/u/marcus256/)** wrote on [Monday, April 05, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/9b32/82cf):

Which system are you using? I seem to recall some problems with Win98 (bad path to the make program in the $(MAKE) variable). If so, try fixing it by uncommenting the line in the top level Makefile that says MAKE = make.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 5, 2004, 11:29pm UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/7 "2004-04-05T23:29:57Z")

</div>

**nobody** wrote on [Monday, April 05, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/9b32/82cf/ccba):

Yes! That’s it! It’s compiling right this minute. Thanks Marcus.

You may want to add something about it to the readme. I did a search in it for 9x and the only thing to come up was

"[Win32] Bugfix: Top level Makefile did not work under Windows 9x."

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 6, 2004, 9:58am UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/8 "2004-04-06T09:58:09Z")

</div>

**[marcus256](https://sourceforge.net/u/marcus256/)** wrote on [Tuesday, April 06, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/9b32/82cf/ccba/1222):

Yes, you are right. The best thing would be to fix it somehow in compile.bat (detect if the make program will execute at all, for instance).

It would be so much easier under Unix, since there everything is standardized, and you can do things like ‘rm -f’… Under Windows we are crippled by the utterly impotent and unstandardized command line interpetrer and commands.

But, I will add a comment in the Readme for now.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 8, 2004, 4:29pm UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/9 "2004-04-08T16:29:38Z")

</div>

**nobody** wrote on [Thursday, April 08, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/1b24):

i have msys and mingw32&nbsp;&nbsp; under win98

when i run ‘make win32-mgw’ i have errors

$ make win32-mgw  
.\compile.bat: @echo: command not found  
.\compile.bat: REM: command not found  
.\compile.bat: REM: command not found  
.\compile.bat: REM: command not found  
.\compile.bat: REM: command not found  
.\compile.bat: REM: command not found  
.\compile.bat: REM: command not found  
.\compile.bat: REM: command not found  
.\compile.bat: line 10: syntax error near unexpected token `(i’  
.\compile.bat: line 10: `REM \* Windows NT, 2000 and 9x (it’s easier to make a script/makefile’  
make: \*\*\* [win32-mgw] Error 2

can you help me?

sorry for my english

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 20, 2004, 2:52am UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/10 "2004-04-20T02:52:23Z")

</div>

**nobody** wrote on [Tuesday, April 20, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/2097):

Have you set up a PATH to the compiler?

In your C:\autoexec.bat file there should be a line that starts SET PATH=%PATH%;

add "C:\Program Files\Dev-Cpp\bin&quot; to the end of it. Of course, it depends on where your copy of the compiler is.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [April 20, 2004, 11:42am UTC](https://discourse.glfw.org/t/unable-to-compile-libraries/155/11 "2004-04-20T11:42:17Z")

</div>

**[marcus256](https://sourceforge.net/u/marcus256/)** wrote on [Tuesday, April 20, 2004](https://sourceforge.net/p/glfw/discussion/247562/thread/ee43a04f/#76ac/1b24/d498):

Don’t use MSYS. It’s a Un\*x-type shell and will not understand MS-DOS/Windows .BAT files. Set up the path to the MinGW bin folder and run the make from a normal command prompt (called MS-DOS prompt under Win98).

Also make sure that you are using the right make program (I believe MSYS and MinGW come with separate flavours of the make program), and under Win98 you may have to change the top level Makefile (see the comment about the $(MAKE) variable at the beginning of the file) because of a bug in the MinGW make program under Win98.
