473,769 Members | 3,232 Online
Bytes | Software Development & Data Engineering Community
+ 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\Co meau\libcomo\st l_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%\IN CLUDE" /O2 /FD /EHsc /ML /GS /W0 /c
/Wp64 /Zi /TP C:\helloworld.c pp

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 2100
Axter <go****@axter.c om> 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\ID E;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\BIN;C: \Program Files\Microsoft Visual Studio .NET
2003\Common7\To ols;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\To ols\bin;%PATH%

set INCLUDE=C:\Prog ram Files\Microsoft Visual Studio .NET
2003\VC7\INCLUD E;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\Platfo rmSDK\include

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

rem Como part
set COMO_MS_INCLUDE =C:\PROGRA~1\MI CROS~2.NET\VC7\ INCLUDE
set COMPILER=--vc71
set PATH=C:\DEVEL\C omo433\bin;%PAT H%
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.p l> 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************ *********@f14g2 000cwb.googlegr oups.com>,
Axter <go****@axter.c om> 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\C omeau\libcomo\s tl_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%\IN CLUDE" /O2 /FD /EHsc /ML /GS /W0 /c
/Wp64 /Zi /TP C:\helloworld.c pp

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.p l> 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\Microsof t.NET\Framework

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

set PATH=%MYCOMONPA TH%\bin;%PATH%
set COMO_MS_INCLUDE =%MYVC7BASEPATH %\vc7\include
set DevEnvDir=%MYVC 7BASEPATH%\Comm on7\IDE
set FrameworkSDKDir =%MYVC7BASEPATH %\SDK\v1.1
set FrameworkVersio n=v1.1.4322
set
INCLUDE=%MYVC7B ASEPATH%\VC7\AT LMFC\INCLUDE;%M YVC7BASEPATH%\V C7\INCLUDE;%MYV C7BASEPATH%\VC7 \PlatformSDK\in clude\prereleas e;%MYVC7BASEPAT H%\VC7\Platform SDK\include;%MY VC7BASEPATH%\SD K\v1.1\include;
set
LIB=%MYVC7BASEP ATH%\VC7\ATLMFC \LIB;%MYVC7BASE PATH%\VC7\LIB;% MYVC7BASEPATH%\ VC7\PlatformSDK \lib\prerelease ;%MYVC7BASEPATH %\VC7\PlatformS DK\lib;%MYVC7BA SEPATH%\SDK\v1. 1\lib;
set MSVCDir=%MYVC7B ASEPATH%\VC7
set
Path=%MYVC7BASE PATH%\Common7\I DE;%MYVC7BASEPA TH%\VC7\BIN;%MY VC7BASEPATH%\Co mmon7\Tools;%MY VC7BASEPATH%\Co mmon7\Tools\bin \prerelease;%MY VC7BASEPATH%\Co mmon7\Tools\bin ;%MYVC7BASEPATH %\SDK\v1.1\bin; %FrameworkDir%\ v1.1.4322;%PATH %
set VCINSTALLDIR=%M YVC7BASEPATH%
set VS71COMNTOOLS=" %MYVC7BASEPATH% \include\..\..\ common7\tools\"
set VSINSTALLDIR=%M YVC7BASEPATH%\C ommon7\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
1673
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 (using the MSVC7 backend, I should state)? There doesn't seem to be any out of the box support for Comeau on Win32/MSVC7 in STLPort, but that's okay, I would think, as it does create libraries for MSVC7.
7
2254
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 Comeau compiler and some back end other than M$ (for now, that's either DMC or the Borland command-line compiler for now) on Windows 2000/XP. Borland support is listed as "buggy", so maybe it would be better to go with DMC ... Does anybody know if...
9
2386
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 updated? Has there just been no news or updates for the past year because the compiler is so very well engineered and constructed? Much gratitude, Theo
3
1817
by: Joe | last post by:
Does anybody know if Comeau intends to support newer versions of GCC or not? Thanks
12
2464
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 templates well?
41
18219
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
4
1665
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 result for this program? #include <iostream> namespace A {
1
1729
by: Stefan Naewe | last post by:
Given the following: // ++ CODE struct S { const int ci; }; int main()
0
10223
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8879
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
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 we have to send another system
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.