Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Can't compile, Tried 2 types of compilers

views
     
eggy
post Feb 8 2006, 10:42 PM

Question authority; but, raise your hand 1st
******
Senior Member
1,761 posts

Joined: Feb 2006
From: Kajang | Shah Alam Mood: Confused -_-"



i used it tho.. n its work fine with me smile.gif
astalavista_baby
post Feb 8 2006, 11:53 PM

Enthusiast
*****
Senior Member
818 posts

Joined: Jan 2003
You used what and what works fine?
Element_18
post Feb 9 2006, 12:44 AM

Getting Started
**
Junior Member
51 posts

Joined: May 2005
Thread starter, don't mind if I borrow your thread? I have a somewhat similar problem, except that my problem comes when I try to build a program. Once I compile the code and click the build button, it just displays the text "Linking" in the bottom window without showing the result (e.g. 0 error, 0 warning). If I click the "Stop building" button, nothing happens. I can't quit the program and have to use Ctrl+Alt+Del to exit. Can anyone help me here?

This post has been edited by Element_18: Feb 9 2006, 12:44 AM
Jcsy
post Feb 9 2006, 09:19 AM

Frag First! Think Later?
*******
Senior Member
2,782 posts

Joined: Feb 2006
From: BANGSARian
reading 2 post number 12 got me dizzy and all sleepy
i hate programming but im in the programming field biggrin.gif

lol
in college, they use something called Borland C++

that program works for your code
but does NOT understand the code

#include<iostream>
void main(){
cout<<"Hello";
}

smile.gif

astalavista_baby
post Feb 9 2006, 11:05 AM

Enthusiast
*****
Senior Member
818 posts

Joined: Jan 2003
QUOTE(Element_18 @ Feb 9 2006, 12:44 AM)
Thread starter, don't mind if I borrow your thread? I have a somewhat similar problem, except that my problem comes when I try to build a program. Once I compile the code and click the build button, it just displays the text "Linking" in the bottom window without showing the result (e.g. 0 error, 0 warning). If I click the "Stop building" button, nothing happens. I can't quit the program and have to use Ctrl+Alt+Del to exit. Can anyone help me here?
*
I am under the assumption that the your source code couldn't be linked properly. This is very hard to solve as there isn't any error message. You know your source code has been compiled successfully but for some reason they can't be linked.

Have you tried on another PC with a different C++ compiler?
astalavista_baby
post Feb 9 2006, 11:07 AM

Enthusiast
*****
Senior Member
818 posts

Joined: Jan 2003
QUOTE(Jcsy @ Feb 9 2006, 09:19 AM)
that program works for your code
but does NOT understand the code

#include<iostream>
void main(){
                cout<<"Hello";
}

smile.gif
*
LOL. Man, a short explaination got you sleepy and all, yet you're in the programming field. Amazing!

Anyway, mind to explain the quote above? What does not understand the code? You or the compiler? What program works for the code?
dstl1128
post Feb 9 2006, 11:51 AM

Look at all my stars!!
*******
Senior Member
4,464 posts

Joined: Jan 2003
Jcsy, your school is still amazingly using a retired compiler. Your Borland compiler must not be earlier than 5.5 (not IDE or for IDE version must not earlier than 6.0). Otherwise you are writing code that won't work in current era of C++.
astalavista_baby
post Feb 9 2006, 05:24 PM

Enthusiast
*****
Senior Member
818 posts

Joined: Jan 2003
QUOTE(dstl1128 @ Feb 9 2006, 11:51 AM)
Jcsy, your school is still amazingly using a retired compiler. Your Borland compiler must not be earlier than 5.5 (not IDE or for IDE version must not earlier than 6.0).  Otherwise you are writing code that won't work in current era of C++.
*
Right on the spot. Exactly my point. Write ANSI C++ compliant codes or your codes will only compile in old C++ compilers and not the current ones.
Element_18
post Feb 9 2006, 06:31 PM

Getting Started
**
Junior Member
51 posts

Joined: May 2005
QUOTE(astalavista_baby @ Feb 9 2006, 11:05 AM)
I am under the assumption that the your source code couldn't be linked properly. This is very hard to solve as there isn't any error message. You know your source code has been compiled successfully but for some reason they can't be linked.

Have you tried on another PC with a different C++ compiler?
*
Well, I tried Visual C++ on another PC, with the same effect. I don't know about any other C++ compilers, can you enlighten me maybe?
eggy
post Feb 9 2006, 06:34 PM

Question authority; but, raise your hand 1st
******
Senior Member
1,761 posts

Joined: Feb 2006
From: Kajang | Shah Alam Mood: Confused -_-"



QUOTE(astalavista_baby @ Feb 8 2006, 11:53 PM)
You used what and what works fine?
*
i used borlan loo.. biggrin.gif
haha... forgot to quote that dude post.. doh.gif
my bad whistling.gif
astalavista_baby
post Feb 9 2006, 07:58 PM

Enthusiast
*****
Senior Member
818 posts

Joined: Jan 2003
QUOTE(eggy @ Feb 9 2006, 06:34 PM)
i used borlan loo..  biggrin.gif
haha... forgot to quote that dude post..  doh.gif 
my bad  whistling.gif
*
Right, gotcha. As said by me and many others, I know it works fine. It's only on the older compilers. Try it on ANSI compliant compilers and the perfectly fine codes will refuse to compile. smile.gif
lohmk
post Feb 11 2006, 05:08 PM

Getting Started
**
Junior Member
234 posts

Joined: Jan 2003
From: Penang, Malaysia



QUOTE(crapp0 @ Jan 28 2006, 07:02 PM)
I'm starting c++ programming and i've used two compilers which were mentioned in this forum called Microsoft Visual C++ 2005 Express Edition(free) and BloodShed DEV IDE(free) and i can't even compile a simple c++ code such as:

#include<iostream.h>
void main(){
                cout<<"Hello";
}

My college computer are using an old version of microsoft visual c++ but i dont know what version they are using and the new microsoft visual c++ 2005 express doesn't even seem to have a button to compile and run the program above which i've saved as a cpp file.
*
i guess nothing is wrong here. u should try returning int with your main()
are you using a compiler which is for c++.net?

 

Change to:
| Lo-Fi Version
0.0169sec    0.92    5 queries    GZIP Disabled
Time is now: 23rd December 2025 - 09:24 AM