News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

eRROR WHILE COMPILING WXWIDGETS

Started by ac506in, July 31, 2006, 04:41:58 PM

Previous topic - Next topic

ac506in

hI ALL

This is first time i am trying to use wxwidgets with c::B.
I am trying to compile wxwidgets and getting following error
D:\wxWidgets-2.6.2\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1
UNICODE=1 BUILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: *** [..\..\lib\gcc_dll] Error 2



I guess mingw32-make.exe doesnt understand syntax properly. I tried to build it with VC++2005 and it compiled with no errors.

But i need to use C::B , can someone help me so that i can use gcc compiler...

thanks...

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mandrav

Be patient!
This bug will be fixed soon...

sethjackson

...and make sure the caps lock key is off when you type..... ;)

kidmosey

Quote from: mandrav on July 31, 2006, 05:14:57 PM
...and do not use MSYS...

What's wrong with MSYS?  It works fine for me.
3 years until google knows more than god.

ac506in

I am already using make with version 3.80 and what is MSYS????

mandrav

Quote from: kidmosey on August 01, 2006, 05:14:03 AM
Quote from: mandrav on July 31, 2006, 05:14:57 PM
...and do not use MSYS...

What's wrong with MSYS?  It works fine for me.


If you run make from within MSYS, it runs it in the "unix-way", i.e. it doesn't use the DOS interpreter. This essentially means that commands like this

if not exist gcc_mswudll mkdir gcc_mswudll

are invalid (the above command is in DOS-style syntax).

In other words, if you open the MSYS window you open a unix-like shell interpreter. The above command would only work under a DOS interpreter.
And, although I haven't used it, I think the same goes for cygwin too...
Be patient!
This bug will be fixed soon...

Ceniza

I've always compiled wxWidgets with MSYS with no problems. Don Corleone could just mean "don't use MSYS' make to do it the MinGW way".

Quote from: www.mingw.orgMSYS: A Minimal SYStem to provide POSIX/Bourne configure scripts the ability to execute and create a Makefile used by make.

Basically: a console and a bunch of other utilities to do *nix like things under Windows using MinGW as compiler.

ac506in

Any idea what is wrong with makefile.gcc???

mandrav

Be patient!
This bug will be fixed soon...

Ceniza

Did you check the output of make -v tells you it's version 3.80 or bigger?

What's the error this time?

ac506in

See following flow:

>mingw32-make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

>cd c:\wx\build

C:\wx\build>cd msw

C:\wx\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1 UNICODE=1 BU
ILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: *** [..\..\lib\gcc_dll] Error 2


C:\wx\build\msw>










mandrav

Please post the output of
echo %PATH%
Be patient!
This bug will be fixed soon...

ac506in


C:\wx\build\msw>echo %PATH%
C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\OpenSSH\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Progra
m Files\Microsoft SDK\Bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program F
iles\Visual Networks\Dial Analysis\;C:\Program Files\Microsoft Visual Studio 8\V
C\bin;D:\Program Files\CodeBlocks\bin;D:\Program Files\CodeBlocks\mingw32\bin

ac506in