![]() |
|
Compiling Allegro for use with CodeBlocks |
SpectreNectar
Member #10,969
May 2009
![]() |
I have been following this tutorial: http://wiki.allegro.cc/index.php?title=Code::Blocks Error: suffix or operands invalid for 'fnstsw' I'm not sure what this error means. - Niels |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
Google is your friend! They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
I found a fix called fnstsw %ax |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
I found a file allegro/src/i386/icpus.s that has a line "fnstsw %eax", if that's changed to "fnstsw %ax" it might work. This is Allegro 4.2.0 btw. They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
I forgot to mention that I've downloaded 4.2.2 |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
So can you search (preferably using grep or something better than explorer search) to find "fnstsw %eax"? They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
I changed the line as you suggested and now I'm stuck at MINGW32-MAKE.EXE install It says (In my own language): access denied, 0 files were copied This is really frustrating. Thank you so far. |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
You have to have administrator privileges to be able to copy alleg*.dll to \windows\system32. Maybe switch to administrator and try "make install" again (it should pick up where it left off at the error) They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
That's another thing I forgot to mention. I use windows vista |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
What does "Start | User Accounts | Manage Accounts" say? If it wants a password to get to that screen, it's asking for administrator password, else you should see icons for all possible users. Do any of them say "Administrator" or do they say "Standard user" or "... account is off"? They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
The one I'm using says Administrator. |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
I don't know why make couldn't install then. Go to the directory that has "alleg32.dll" etc. (probably allegro/lib/mingw32), hold shift down and right click off to the right side, and see if you can get a "Open Command Window Here" to click on. Once there, type in "copy *.dll c:\windows\system32" and hit enter. If it says "1 file(s) copied" or more then you're all set. Really though, you should create a Standard User account for normal use and especially before surfing the intrawebs They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
Access denied again. |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
<sigh> You have lost... Try downloading and burning one of the Linux live CD's and see if you can copy it with that. Alternatively, you might temporarily copy alleg32.dll to the directory where your exe's are? They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
I tried copying the dll to my system32 folder without the command prompt. Will that work? |
Thomas Fjellstrom
Member #476
June 2000
![]() |
When starting the cmd window, go to the start menu, type in "cmd" and hit CTRL+SHIFT+ENTER instead of just enter, and cd back to the allegro dir, and run your make install. -- |
SpectreNectar
Member #10,969
May 2009
![]() |
Great! I'm through compiling Allegro, but I can't build the hello world example. obj\Debug\main.o||In function `mangled_main':| |
Schyfis
Member #9,752
May 2008
![]() |
It looks like you need to add liballeg.a to your linker settings. ________________________________________________________________________________________________________ |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
They all watch too much MSNBC... they get ideas. |
SpectreNectar
Member #10,969
May 2009
![]() |
Thank you! you guys are awesome. |
|