S
S
sddvxd2018-12-25 22:35:01
C++ / C#
sddvxd, 2018-12-25 22:35:01

In what there can be a problem of the assembly of source codes?

Hello!
For the first time I'm trying to build someone else's library from source, I take every step up to a centimeter according to the instructions, but I still got an error during assembly:

...

gcc -c -o lib/glut/win32_menu.o lib/glut/win32_menu.c -mthreads -O3 -Iinclude -D
WIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DGLUT32_EXPORTS -UGLUT_USE_SGI_OPEN
GL
gcc -c -o lib/glut/win32_util.o lib/glut/win32_util.c -mthreads -O3 -Iinclude -D
WIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DGLUT32_EXPORTS -UGLUT_USE_SGI_OPEN
GL
gcc -c -o lib/glut/win32_winproc.o lib/glut/win32_winproc.c -mthreads -O3 -Iincl
ude -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DGLUT32_EXPORTS -UGLUT_USE_SG
I_OPENGL
lib/glut/win32_winproc.c: In function '__glutOnEnterMenuLoop':
lib/glut/win32_winproc.c:579:18: warning: multi-character character constant
lib/glut/win32_winproc.c: In function '__glutOnExitMenuLoop':
lib/glut/win32_winproc.c:588:19: warning: multi-character character constant
gcc -c -o lib/glut/win32_x11.o lib/glut/win32_x11.c -mthreads -O3 -Iinclude -DWI
N32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DGLUT32_EXPORTS -UGLUT_USE_SGI_OPENGL

windres lib/glut/glut.rc lib/glut/resources.o
: Invalid argumentresources.o
mingw32-make: *** [lib/glut/resources.o] Error 1

I have been compiling the GLUT library according to their instructions for several hours and nothing comes out ... please tell me what could be the matter

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-12-29
@jcmvbkbc

windres lib/glut/glut.rc lib/glut/resources.o
: Invalid argumentresources.o

What can be wrong

windres doesn't like the second command line argument. It looks like it's expecting '\' as file path separator instead of '/'.
You can start by checking if this is the case by running windres like this: windres lib\glut\glut.rc lib\glut\resources.o
It's also worth checking that you are using windres from the same set as the rest of the build tools, and not some left.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question