User forums > Help

CB giving error with status -1073741819

(1/4) > >>

ishu161:
okay, i've written a simple hello world program...


--- Code: ---//a simple hello world program
#include<iostream>
int main()
{

    std::cout<<"Hello World!\n";
    char response;
    std::cin>> response;
    return 0;
}

--- End code ---

and when i compile/build and Run it, the DOS window opens and windows give the gud ol' "send, Don't send" error.....after that, there is the following message in the window, which is also in the Build log :


--- Code: ---Process terminated with status -1073741819 (0 minutes, 21 seconds)
--- End code ---

well, in the window, it says that process returned -1073741819....which i'm guessing is a garbage value?

i've searched for this over the net, can't find it, and i'm pretty sure the coding is not the problem...help me out?

oBFusCATed:
Read the forum rules....
This is not a forum for discussing general programming, but a forum to discuss using CB for programming...

Buy a GOOD C++ book and read!

ishu161:
dude i know C++......i have programmed before...but this is giving me a headache coz i don't know what i'm doing wrong!
the compiler is there, the ide is there, the code is there, but no output!!! i have read the FAQs, AND the User Manual.....can't seem to find what's wrong!!!
don't reply if u don't wanna help man, no one's asking you to flame me

oBFusCATed:
OK, but you've not read the forum's rules and there is no version info for OS, CB, compiler, no full build log...

Do you use a project or this is a single compiled using single cpp file?

btw, you code sample works perfectly on my machine...

ishu161:
well..thanks for at least replying....and i had read the rules...just a little frustrated...

i'm using windows xp sp2

i reinstalled C::B since the last post....and tried again, this time i'm getting an error saying the iostream file/directory doesn't exists.....i'm pretty sure minGW is installed, so why?

here's the build log:


--- Code: ---mingw32-gcc.exe   -I"C:\Program Files\CodeBlocks\MinGW"  -c "C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.c" -o "C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.o"
C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.c:2:19: error: iostream: No such file or directory
C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.c: In function 'main':
C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.c:6: error: expected expression before ':' token
C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.c:8: error: duplicate label 'std'
C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.c:6: note: previous definition of 'std' was here
C:\Documents and Settings\manish\My Documents\CodeBlocks\My Intro To OOP\Untitled1.c:8: error: expected expression before ':' token
Process terminated with status 1 (0 minutes, 5 seconds)
4 errors, 0 warnings
 
--- End code ---

this thing hapenned when i initially installed code::blocks, but for some reason, it was able to at least compile the file later, and started giving the error message i posted earlier. Now, its even more hopeless.
i know C++ coding...the logic to the programs...i don't understand this! :(

and i was coding in an 'empty file' in an 'empty project'...and even a direct 'empty file'...same result
 

Navigation

[0] Message Index

[#] Next page

Go to full version