Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: 1 [2]   Go Down

Author Topic: Need Help with C++  (Read 3997 times)

0 Members and 1 Guest are viewing this topic.
Re: Need Help with C++
« Reply #20 on: April 18, 2007, 07:25:18 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
Post the code, maybe that'll help :D
Logged
Re: Need Help with C++
« Reply #21 on: April 18, 2007, 07:33:20 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Its not a code problem its a install problem (I can tell you with certanty, its probably a MinGW problem :D). If the advice we have given you dosen't work my advise is either to post at Borlands forums (I think they have some) or use a different IDE.
Logged
Re: Need Help with C++
« Reply #22 on: April 18, 2007, 07:36:13 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
It's strange that VSC++ isn't working as well though...or is it and I'm just confused?
Logged
Re: Need Help with C++
« Reply #23 on: April 18, 2007, 07:38:58 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 598
VSC++ doesnt work either, darkjay.
Logged
[...The mystery of wireless, revealed...]

[...Ninjas...]
Re: Need Help with C++
« Reply #24 on: April 18, 2007, 07:51:08 pm »
  • IBV
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1075
Its not a code problem its a install problem (I can tell you with certanty, its probably a MinGW problem :D). If the advice we have given you dosen't work my advise is either to post at Borlands forums (I think they have some) or use a different IDE.

Uhm.. what has Borland anything to do with it?
Logged
My signature is empty.
Re: Need Help with C++
« Reply #25 on: April 18, 2007, 07:53:26 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Its not a code problem its a install problem (I can tell you with certanty, its probably a MinGW problem :D). If the advice we have given you dosen't work my advise is either to post at Borlands forums (I think they have some) or use a different IDE.

Uhm.. what has Borland anything to do with it?
Sorry Bloodshed, I always get them mixed up >.>. Frankly though, does it matter?
Logged
Re: Need Help with C++
« Reply #26 on: April 18, 2007, 07:56:06 pm »
  • IBV
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1075
Its not a code problem its a install problem (I can tell you with certanty, its probably a MinGW problem :D). If the advice we have given you dosen't work my advise is either to post at Borlands forums (I think they have some) or use a different IDE.

Uhm.. what has Borland anything to do with it?
Sorry Bloodshed, I always get them mixed up >.>. Frankly though, does it matter?
Well, yes it does matter (it's like redirecting someone to MSDN for GNU/Linux help ;) ). But it's nothing serious, everyone makes mistakes :P
Logged
My signature is empty.
Re: Need Help with C++
« Reply #27 on: April 18, 2007, 08:30:02 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
By not compile, what exactly do you mean? Do you get an error code, or...?
Logged
Re: Need Help with C++
« Reply #28 on: April 18, 2007, 08:32:53 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 598
K.


1>------ Build started: Project: BoxedIrc, Configuration: Debug Win32 ------
1>Compiling...
1>BoxedIrc.cpp
1>c:\users\ryan\downloads\boxedirc_source\boxedirc.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Build log was saved at "file://c:\Users\Ryan\Downloads\boxedirc_source\Debug\BuildLog.htm"
1>BoxedIrc - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Logged
[...The mystery of wireless, revealed...]

[...Ninjas...]
Re: Need Help with C++
« Reply #29 on: April 18, 2007, 08:35:00 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
You did download the windows SDK AS WELL as the VSC++ IDE/Compiler, right? And you linked everything, right?

Try this:

Code: [Select]
#include <iostream>

int main()
{
std::cout << "Hello world!" << std::endl;
system("PAUSE");
return 0;
};
Logged
Re: Need Help with C++
« Reply #30 on: April 18, 2007, 08:37:27 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
did you put windows.h into " " or <>?  I think it has to be in <>
Logged



i love big weenies and i cannot lie
Re: Need Help with C++
« Reply #31 on: April 18, 2007, 08:39:22 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 598
either way; on all the other computers ive worked with (ive installed Dev-C++ on them) its worked. yet, not this one. and its pissing me off. i havent had to download THIS or THAT or half the internet to get it to work; its worked straight out of the exe. So, I'm gonna have to guess that i HAVE these things, or this computer just hates C++.
Logged
[...The mystery of wireless, revealed...]

[...Ninjas...]
Re: Need Help with C++
« Reply #32 on: April 18, 2007, 08:42:17 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
So, I'm guessing by your dodging the question, you DID forget to download the windows SDK  ;)
Logged
Re: Need Help with C++
« Reply #33 on: April 18, 2007, 08:43:17 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 598
on all the other computers ive worked with i havent had too; why should i have to with this one?

heres what im using now:

Code: [Select]
// learning.cpp : main project file.

#include "stdafx.h"

using namespace System;

int main(array<System::String ^> ^args)
{
    Console::WriteLine(L"Hello World");
    return 0;
}

« Last Edit: April 18, 2007, 08:44:52 pm by ZServ »
Logged
[...The mystery of wireless, revealed...]

[...Ninjas...]
Re: Need Help with C++
« Reply #34 on: April 18, 2007, 08:45:30 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
Because VSC++ doesn't bundle the Windows SDK with the main IDE, it's a second optional download, just like DirectX.
Logged
Re: Need Help with C++
« Reply #35 on: April 18, 2007, 08:46:11 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 598
um. but even in dev-C++ it doesnt work ;p

there, i did what you said in dev-C++:


cpp: installation problem, cannot exec `cc1plus': No such file or directory
g++: file path prefix `C:\DEV-C_~1\Bin\' never used


ive installed this !@#$% 3 times and im on the verge of crying.
« Last Edit: April 18, 2007, 08:48:32 pm by ZServ »
Logged
[...The mystery of wireless, revealed...]

[...Ninjas...]
Re: Need Help with C++
« Reply #36 on: April 18, 2007, 08:53:42 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
Dev-C++ can't find the /bin/ folder. Are you sure it's there?

And have you tried the code I suggested in VSC++?
Logged
Re: Need Help with C++
« Reply #37 on: April 18, 2007, 08:56:37 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 598
yup, its there. and in VSC++:

1>------ Build started: Project: learning, Configuration: Debug Win32 ------
1>Compiling...
1>learning.cpp
1>.\learning.cpp(9) : fatal error C1010
1>Build log was saved at "file://c:\Users\Ryan\Documents\Visual Studio 2005\Projects\learning\learning\Debug\BuildLog.htm"
1>learning - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Logged
[...The mystery of wireless, revealed...]

[...Ninjas...]
Re: Need Help with C++
« Reply #38 on: April 18, 2007, 09:02:35 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
"1>.\learning.cpp(9) : fatal error C1010" -> http://support.microsoft.com/kb/815644

Personally I think that sounds like a environment variable problem, chances are your missing one of the ones the IDE / compiler needs to access certain files. Probably a PATH variable. Try posting at the site of your IDE provider.
Logged
Re: Need Help with C++
« Reply #39 on: April 18, 2007, 09:04:21 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 598
Will do; until then, off to VB! *locked*
Logged
[...The mystery of wireless, revealed...]

[...Ninjas...]
Pages: 1 [2]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.1 seconds with 74 queries.