User forums > Help

GLFW in CodeBlocks

(1/2) > >>

mercury83:
Hi

I follow the instructions to use GLFW in CodeBlocks but when I finish all the process of compilation, installation and building, it gives a build error. Ive even deleted and reinstalled Codeblocks to repeat the process (and Im a XP user :D).

The following error shows up in the build log:

mingw32-g++.exe -Wall -fexceptions  -g     -c "E:\Mis documentos\INFORMATICA GESTION\3er CURSO\PRG\P0\Práctica 0\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe: installation problem, cannot exec `as': Invalid argument
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


Now, I think it could be this thing that appears during compilation:

win32_time.c: In function `_glfwInitTimer':
win32_time.c:556: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:556: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:563: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:563: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:574: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:574: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:583: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:583: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c: In function `_glfwPlatformGetTime':
win32_time.c:621: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:621: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c: In function `_glfwPlatformSetTime':
win32_time.c:650: warning: dereferencing type-punned pointer will break strict-aliasing rules
win32_time.c:650: warning: dereferencing type-punned pointer will break strict-aliasing rules


...


C:\Archivos de programa\CodeBlocks\Open GL GLFW>win32_time.c: In function `_glfwInitTimer':
"win32_time.c:" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

C:\Archivos de programa\CodeBlocks\Open GL GLFW>win32_time.c:556: warning: dereferencing type-punned
 pointer will break strict-aliasing rules
El nombre de archivo, directorio o etiqueta del volumen no es válido.

etc


Any idea?

THANK YOU!

MortenMacFly:

--- Quote from: mercury83 on September 07, 2009, 08:13:58 pm ---mingw32-g++.exe: installation problem, cannot exec `as': Invalid argument

--- End quote ---
According to this:
http://www.otter-rsch.ca/phpbb/viewtopic.php?p=555
...you might want to try a more recent GCC.

However - to telly ou some more you should at least state what version of C::B, what compiler version on what platform you are using.

Deleting the config file might work, too (in case your setup got broken for any strange reason that should actually not happen).

Jenna:
Please do not start two (or more) threads about the same issue.

If no one answers a thread, it might be that nobody has an idea how to solve the issue, or people who know the problem just did not read it, or the post lacks information about the problem.

In any case it's better to "bump" the first thread, but please don't do it after one or two hours as it sometimes happens.

mercury83:
I'm using the version 8.02 of CB and Windows XP.

Where can I find the compiler's version?

Where can I find the newest versions of the GCC compiler?
And how would I I install it?

And what config file do you mean?


Thank you very much for your answer!

Seronis:

--- Quote from: mercury83 on September 08, 2009, 09:26:15 am ---I'm using the version 8.02 of CB and Windows XP.

Where can I find the compiler's version?

--- End quote ---
start -> run -> cmd
type  'gcc -v'


--- Quote from: mercury83 on September 08, 2009, 09:26:15 am ---Where can I find the newest versions of the GCC compiler?
And how would I I install it?

--- End quote ---
http://www.tdragon.net/recentgcc/

Navigation

[0] Message Index

[#] Next page

Go to full version