Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Syntax error while make

This thread is locked; no one can reply to it. rss feed Print
Syntax error while make
SonShadowCat
Member #1,548
September 2001
avatar

I'm getting this error while trying to compile allegro:

src/poly3d.c:49: error: syntax error before string constant

I've done a search but it came up with nothing and now the search won't even work anymore. I've looked at the .c file and saw nothing wrong and I've done everything else correctly so I ask for help. Thank you.

TeamTerradactyl
Member #7,733
September 2006
avatar

Which allegro version, SonShadowCat?

Matthew Leverton
Supreme Loser
January 1999
avatar

http://www.allegro.cc/forums/thread/380007

Check for bad quotes in asmcapa.h. Usually due to having sh.exe in your path.

SonShadowCat
Member #1,548
September 2001
avatar

That helped the first problem but now I get this when running make install:

misc/mdhelper.sh H:/MinGW/lib H:/MinGW/include H:/MinGW/include/allegro H:/MinGW
/include/allegro/platform H:/MinGW/include/allegro/internal H:/MinGW/include/all
egro/inline
process_begin: CreateProcess((null), sh H:\MINGW\ALLEGRO\misc\mdhelper.sh H:/Min
GW/lib H:/MinGW/include H:/MinGW/include/allegro H:/MinGW/include/allegro/platfo
rm H:/MinGW/include/allegro/internal H:/MinGW/include/allegro/inline, ...) faile
d.
make (e=2): The system cannot find the file specified.
MAKE: *** [create-install-dirs] Error 2

I also ran a search for that with no results.

Matthew Leverton
Supreme Loser
January 1999
avatar

Remove the sh.exe / bash.exe and whatever else triggers unix tools from your path by either redoing your path or renaming the file.

SonShadowCat
Member #1,548
September 2001
avatar

There is no sh.exe, I read that in the thread and looked for it. By my path do you mean the PATH variable in the environment? I see nothing that might cause it to be called.

Matthew Leverton
Supreme Loser
January 1999
avatar

Or edit the makefile.mgw and remove these lines:

ifdef CROSSCOMPILE
UNIX_TOOLS = 1
CC = $(XPREFIX)gcc
endif

ifdef ALLEGRO_USE_CYGWIN
UNIX_TOOLS = 1
endif

ifneq (,$(findstring /sh.exe,$(SHELL)))
UNIX_TOOLS = 1
endif

SonShadowCat
Member #1,548
September 2001
avatar

No difference, I'm still getting the error.

Matthew Leverton
Supreme Loser
January 1999
avatar

Are you running from cmd.exe or some other shell?

SonShadowCat
Member #1,548
September 2001
avatar

Matthew Leverton
Supreme Loser
January 1999
avatar

Well, I don't know why UNIX_TOOLS is still set. It looks like it's built, so you could just copy the files by hand.

mscava
Member #6,815
January 2006
avatar

That's the error I still have...process_begin: CreateProcess( NULL, ... ) failedI've been browsin internet a bit and I've found that if the filepath where you are working is longer than 128 chars, it won't work. Anyway my filepath wasn't longer than 128 chars. So I'm doing some things through sh.exe instead of cmd.exe and I won't get CreateProcess failed.

SonShadowCat
Member #1,548
September 2001
avatar

Huh, I fixed it. I simply found sh.exe in unxutils folder then copied it to the allegro folder and it worked.

Go to: