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?
How to configure Textpad for Microsoft Visual C++ v.6.0
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2
- Joined: Sun Oct 17, 2004 10:19 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Have you tried, er, specifying -GX (= /GX)?
Code: Select all
Parameters: /GX /I%MSVCDir%\INCLUDE $File
Configure TextPad for Visual Studio.NET C++
I tried the setup for Visual C++ 6.0, but I do not get good results for Visual C++.NET. I get "Tool completed with exit code 128". Any help would be greatly appricated.