How to configure Textpad for Microsoft Visual C++ v.6.0
Posted: Wed Jan 05, 2005 6:52 pm
I didn't see any info on how to configure Textpad to Compile and Link a Microsoft Visual C++ v6.0 file.
Here was my attempt:
Compile C++ Settings (Add…Program)
Command: C:\Program Files\Microsoft Visual Studio\VC98\Bin\CL.EXE
Parameters: /I%MSVCDir%\INCLUDE $File
Initial folder: $FileDir
checkboxes: Capture Output, Sound alert when completed
Regular Expression: ^\([^(]+\)(\([0-9]+\)):
File: 1 Line: 2
It does compile and link, and the Run configuration is the same as for Borland, however I did get some warnings during the compile:
lab22.cpp
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(547) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(229) : while compiling class-template member function 'class std::basic_ostream<char,struct std::char_traits<char> > &__thiscall std::basic_ostream<char,struct std::char_traits<char> >::put(char)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(234) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(229) : while compiling class-template member function 'class std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> > &__thiscall std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> >::put(unsigned short)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(46) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(41) : while compiling class-template member function 'bool __thiscall std::basic_istream<char,struct std::char_traits<char> >::ipfx(bool)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(46) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(41) : while compiling class-template member function 'bool __thiscall std::basic_istream<unsigned short,struct std::char_traits<unsigned short> >::ipfx(bool)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\xstring(525) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\xstring(521) : while compiling class-template member function 'void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned int)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(296) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
K:\Steiner\cis121a\lab22.cpp(5) : see reference to function template instantiation 'class std::basic_ostream<char,struct std::char_traits<char> > &__cdecl std::operator <<(class std::basic_ostream<char,struct std::char_traits<char> > &,const char *)' being compiled
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:lab22.exe
lab22.obj
Tool completed successfully
Can you help?
Here was my attempt:
Compile C++ Settings (Add…Program)
Command: C:\Program Files\Microsoft Visual Studio\VC98\Bin\CL.EXE
Parameters: /I%MSVCDir%\INCLUDE $File
Initial folder: $FileDir
checkboxes: Capture Output, Sound alert when completed
Regular Expression: ^\([^(]+\)(\([0-9]+\)):
File: 1 Line: 2
It does compile and link, and the Run configuration is the same as for Borland, however I did get some warnings during the compile:
lab22.cpp
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(547) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(229) : while compiling class-template member function 'class std::basic_ostream<char,struct std::char_traits<char> > &__thiscall std::basic_ostream<char,struct std::char_traits<char> >::put(char)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(234) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(229) : while compiling class-template member function 'class std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> > &__thiscall std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> >::put(unsigned short)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(46) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(41) : while compiling class-template member function 'bool __thiscall std::basic_istream<char,struct std::char_traits<char> >::ipfx(bool)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(46) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\istream(41) : while compiling class-template member function 'bool __thiscall std::basic_istream<unsigned short,struct std::char_traits<unsigned short> >::ipfx(bool)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\xstring(525) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\xstring(521) : while compiling class-template member function 'void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned int)'
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\ostream(296) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX
K:\Steiner\cis121a\lab22.cpp(5) : see reference to function template instantiation 'class std::basic_ostream<char,struct std::char_traits<char> > &__cdecl std::operator <<(class std::basic_ostream<char,struct std::char_traits<char> > &,const char *)' being compiled
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:lab22.exe
lab22.obj
Tool completed successfully
Can you help?