Greeting All!
Code::Blocks is exactly what I was looking for, and you guys did a great job!
I have an issue with a simple C++ program, using a string variable. Below, I have included the code from a file named StringTest.cpp:
----------- Code: StringTest.cpp -----------------------
1. #include <iostream>
2. #include <string>
3.
4. int main()
5. {
6. using namespace std;
7.
8. string aName = "Hello World";
9. cout << "Hello World\n" << endl;
10. cout << aName;
11.
12. return 0;
13. }
--------------------------------------------------------
The program builds with no errors or warnings. Below I have included the ouput from the build:
-------------- Build: Debug in StringWork ---------------
bcc32.exe -q -w -x -v -IC:\Borland\BCC55\Include -oobj\Debug\StringTest.obj -c StringTest.cpp
StringTest.cpp:
ilink32.exe -q -ap -v -LC:\Borland\BCC55\lib -LC:\Borland\BCC55\lib\psdk c0x32 obj\Debug\StringTest.obj ,bin\Debug\StringWork.exe,,cw32mt.lib import32.lib ,,
Output size is 119.50 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
---------------------------------------------------------
When I run the executable from within Code::Blocks (or by just double clicking the .exe file) I first get an error from Windows that says:
-------------- Error: Windows XP Home SP3----------------
StringWork.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
---------------------------------------------------------
Then the console, started by Code::Blocks, displays:
------------- Information: Code::Blocks 10.05 -----------
Process returned -1073741819 (0xC0000005) execution time : 12.344 s
Press any key to continue.
---------------------------------------------------------
If I comment out line 10 [cout << aName;], the program compiles and runs as expected.
OS: Windows XP Home SP3
Code::Blocks: 10.05
Compiler: Borland 5.5, 5.82 (sp1, sp2)
Thank you for your help.