Hello Jinhyuk Choi ,
Of course the root cause of inconvience is that we are
using different versions
of visual visual C++. For example, I am using visual
studio.NET 2003 which has
better compliance with ANSI C++ standards compared to
visual C++ 6.0.
One of the changes proposed would actually prevent the
code from compiling with a
standards compliant compiler. For example with recent
versions of GNU g++ the
following result
occurs.
for (unsigned i=0; i<10;
i++); for (i=0; i<10; i++);
/cygdrive/d/users/hill/epicsDvl/epics/base$
g++ tmp.cpp tmp.cpp: In function `int main()': tmp.cpp:5: error: name
lookup of `i' changed for new ISO `for' scoping tmp.cpp:4: error:
using obsolete binding at `i'
Nevertheless, I have committed changes to CVS
for R3.14.8
(availalable soon for testing via a nightly snbapshot) that should
hopefully allow visual studio 6.0
to be used also.
> 1. No /GL, /w44355 options for cl
> 2. No /LTCG option for link
These command line switches, available only
with the more recent compiler,
do generate warnings if used with the
older compiler.
One possible way to avoid the
warnings would be to create a set of
config files for host architecture
win32-x86-MSVS6.0
> I wish this list can help to someone.
No doubt that they will.
Thanks very much for your
assistance.
Jeff
-----Original
Message----- From: ÃÖÁøÇõ [mailto:[email protected]]
Sent: Friday, November 11, 2005 2:15 AM To:
[email protected] Subject: Building 3.14.7 on win32-x86 with
Visual C++ 6.0
Hi
all,
I'm a beginner in EPICS. With some experience with Visual
C++6, I've built 3.14.7 on win32-x86 correcting some errors. The
errors fixed are as follows.
1. base/src/libCom/osi/epicsThread.cpp
std::unexpected () -> unexpected () visual C get unexpected() out
of std namespace.
2. base/src/ca/udpiiu.cpp line 244: remove
unsigned in "unsigned i" duplicated definition
3.
base/src/ca/tcpiiu.cpp line 1982: remove return in "return
nettiu::uninstallChannel...() void should not return something
4.
base/src/gdd/dbMapper.cc line 1108 & 1134: remove int in "int i"
duplicated definition
I've finished building with some warnings:
1. No /GL, /w44355 options for cl 2. No /LTCG option for link
Please forgive me if someone has already addressed the above points.
For the warnings, I should study further and any help will be appreciated.
Still it should be checked if it works fine.
I wish this list
can help to someone.
Jinhyuk Choi Pohang Accelerator
Laboratory
|