473,480 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Comeau (working *.bat file)

Sorry for OT question, but does any one have a working *.bat file to
get Comeau to work with VC++ 7.1, VC++ 8.0, or GNU 3.x compilers.

I've tried everything I can think off, to get it to work, and I get
compile errors.
I'm currently using the following *.bat file
http://axter.com/complr.bat

With the following simple hello world source code:
http://axter.com/helloworld.cpp

I keep getting compile errors associated with libcomo, which is the STL
library that is recommended to be used with Comeau.
Example:
"L:\Compiler\Comeau\libcomo\stl_config.h", line 723: catastrophic
error: could
not open source file "math.h"
#include <math.h>

I can get rid of the above compile error if I change the last line in
the bat file to the following:
como.exe -w --vc71 -I"%VC7_ROOT%\INCLUDE" /O2 /FD /EHsc /ML /GS /W0 /c
/Wp64 /Zi /TP C:\helloworld.cpp

However, I then get the following error:
************************************************** **********************
Failure while executing 'cl' compiler ...email Comeau for advice.
************************************************** **********************

When I emailed Comeau support, I was told I should remove the VC7
include. Which of course just seems to make things worse.

I'm hoping someone else has a working *.bat file that I could use to
get Comeau working.

Thanks

FYI: (For the topic policy, there is no Comeau NG that I'm aware of,
and Comeau Support has failed to reply to my last two emails)

Feb 7 '06 #1
4 2077
Axter <go****@axter.com> wrote:
Sorry for OT question, but does any one have a working *.bat file to
get Comeau to work with VC++ 7.1, VC++ 8.0, or GNU 3.x compilers.
8< --- como.cmd --- 8<

@echo off

rem MSVC71 part (no MFC nor ATL stuff)
set PATH=C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\bin;%PATH%

set INCLUDE=C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\PlatformSDK\include

set LIB=C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\LIB;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\PlatformSDK\lib

rem Como part
set COMO_MS_INCLUDE=C:\PROGRA~1\MICROS~2.NET\VC7\INCLU DE
set COMPILER=--vc71
set PATH=C:\DEVEL\Como433\bin;%PATH%
if "%1"=="" goto done
como.exe %*
exit /b %ERRORLEVEL%
:done
8 --- como.cmd --- >8


You will probably need to fix wrapped lines above
B.

Feb 7 '06 #2
Bronek Kozicki <br**@rubikon.pl> wrote:
done
8 --- como.cmd --- >8


You will probably need to fix wrapped lines above


.... and replace "> done" with ":done". OE-qotefix "fixed" colon when I
was sending above
B.

Feb 7 '06 #3
In article <11*********************@f14g2000cwb.googlegroups. com>,
Axter <go****@axter.com> wrote:
Sorry for OT question, but does any one have a working *.bat file to
get Comeau to work with VC++ 7.1, VC++ 8.0, or GNU 3.x compilers.

I've tried everything I can think off, to get it to work, and I get
compile errors.
I'm currently using the following *.bat file
http://axter.com/complr.bat

With the following simple hello world source code:
http://axter.com/helloworld.cpp

I keep getting compile errors associated with libcomo, which is the STL
library that is recommended to be used with Comeau.
Example:
"L:\Compiler\Comeau\libcomo\stl_config.h", line 723: catastrophic
error: could
not open source file "math.h"
#include <math.h>

I can get rid of the above compile error if I change the last line in
the bat file to the following:
como.exe -w --vc71 -I"%VC7_ROOT%\INCLUDE" /O2 /FD /EHsc /ML /GS /W0 /c
/Wp64 /Zi /TP C:\helloworld.cpp

However, I then get the following error:
************************************************* ***********************
Failure while executing 'cl' compiler ...email Comeau for advice.
************************************************* ***********************

When I emailed Comeau support, I was told I should remove the VC7
include. Which of course just seems to make things worse.

I'm hoping someone else has a working *.bat file that I could use to
get Comeau working.

Thanks

FYI: (For the topic policy, there is no Comeau NG that I'm aware of,
and Comeau Support has failed to reply to my last two emails)


We give examplary email support, so as much as possible I would
suggest using that over other choices.

We have sent you email now to 4 different paths. Are we going
into your spam?

As to your problem, it is not picking up the 7.1 includes.

As to your question, see bullet #10 of
http://www.comeaucomputing.com/4.3.0...+/como433.html
where VC++ 7.1 environment variables are discussed.
Now doubt your settings will be different because you installed
things in different places. In any event, you can (probably should)
be using vcvars32 to setup VC++ 7.1 completely, but itself,
and make sure it can compile a test program. Tne just add
Comeau's bin to your PATH, and 7.1's include directory to
COMO_MS_INCLUDE.

Generally speaking we respond to emails from instantaneously to in
a few hours 7 days a week 24 hours. Also, if we do not respond in 24
hours it probably something has gone wrong with the communication paths
in some manner. Anyway, our support channels should be used over
the NGs.
--
Greg Comeau / Celebrating 20 years of Comeauity!
Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Feb 7 '06 #4
Bronek Kozicki wrote:
Bronek Kozicki <br**@rubikon.pl> wrote:
done
8 --- como.cmd --- >8


You will probably need to fix wrapped lines above


... and replace "> done" with ":done". OE-qotefix "fixed" colon when I
was sending above
B.


Thanks Bronek.
Seems that there was an email problem, and I was not getting Comeau's
response.
With their help, and with a little testing, I found the problem, and a
good working *.bat script.

In my command line, I was using /c and /TP.
The /TP does not work, which is the option that tells the VC++ compiler
to compile as C++ code.
I believe this doesn't work because Comeau compiles using a C-Compiler
as the front-end.
Also the /c option tells the VC++ compiler not to link, so this also
shouldn't be used.
If anyone else runs into the same problem, here's the working script:
echo off
Rem Change the following three variables to point to your paths
set MYCOMONPATH=L:\Compiler\Comeau
set MYVC7BASEPATH=C:\Program Files\Microsoft Visual Studio .NET 2003
set FrameworkDir=C:\WINNT\Microsoft.NET\Framework

set Drive=%~d1%
Rem Change current drive and directory path
cd /d %Drive%

set PATH=%MYCOMONPATH%\bin;%PATH%
set COMO_MS_INCLUDE=%MYVC7BASEPATH%\vc7\include
set DevEnvDir=%MYVC7BASEPATH%\Common7\IDE
set FrameworkSDKDir=%MYVC7BASEPATH%\SDK\v1.1
set FrameworkVersion=v1.1.4322
set
INCLUDE=%MYVC7BASEPATH%\VC7\ATLMFC\INCLUDE;%MYVC7B ASEPATH%\VC7\INCLUDE;%MYVC7BASEPATH%\VC7\PlatformS DK\include\prerelease;%MYVC7BASEPATH%\VC7\Platform SDK\include;%MYVC7BASEPATH%\SDK\v1.1\include;
set
LIB=%MYVC7BASEPATH%\VC7\ATLMFC\LIB;%MYVC7BASEPATH% \VC7\LIB;%MYVC7BASEPATH%\VC7\PlatformSDK\lib\prere lease;%MYVC7BASEPATH%\VC7\PlatformSDK\lib;%MYVC7BA SEPATH%\SDK\v1.1\lib;
set MSVCDir=%MYVC7BASEPATH%\VC7
set
Path=%MYVC7BASEPATH%\Common7\IDE;%MYVC7BASEPATH%\V C7\BIN;%MYVC7BASEPATH%\Common7\Tools;%MYVC7BASEPAT H%\Common7\Tools\bin\prerelease;%MYVC7BASEPATH%\Co mmon7\Tools\bin;%MYVC7BASEPATH%\SDK\v1.1\bin;%Fram eworkDir%\v1.1.4322;%PATH%
set VCINSTALLDIR=%MYVC7BASEPATH%
set VS71COMNTOOLS="%MYVC7BASEPATH%\include\..\..\commo n7\tools\"
set VSINSTALLDIR=%MYVC7BASEPATH%\Common7\IDE

rem For VC++, DO NOT use /c or /TP command line options
como.exe --vc71 /O2 /FD /EHsc /ML /GS /W0 /Wp64 /Zi %1 %2 %3 %4 %5 %6
%7 %8 %9
echo "Done!!!!"

Feb 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1658
by: Icosahedron | last post by:
I'm sure it's been done. I'm sure that I'm an idiot for even asking the question, but has anyone been successful in getting Comeau 4.3.0.1 to compile STLPort, or even use STLPort in a program...
7
2228
by: Bob Hairgrove | last post by:
Hi, The Digital Mars compiler is not listed on the Dinkumware library's compatibility list on their web site. I would like to use the Dinkumware STL (source code license) together with the...
9
2372
by: Theodore Huxibolde | last post by:
The Comeau C++ web site does not appear to have been updated in nearly a year, but I do notice that Mr. Comeau does post here quite freqently. Is this compiler still being actively developed and...
3
1793
by: Joe | last post by:
Does anybody know if Comeau intends to support newer versions of GCC or not? Thanks
12
2427
by: nicdude | last post by:
There is a Comeau C++ compiler special offer at http://www.comeaucomputing.com Is it really as compliant as it seems to imply? In terms of Standard C++, what is it missing? Can it handle...
41
18047
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
4
1647
by: Alan Woodland | last post by:
Hi, I was trying to come up with obscure C++ questions in the style of GoTW and ran across this unexpected difference between G++ and comeau. Can anyone point me in the direction of the correct...
1
1715
by: Stefan Naewe | last post by:
Given the following: // ++ CODE struct S { const int ci; }; int main()
0
7046
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7088
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.