Question:
linking errors in visual c++ 6.0?
Charak A
2010-05-14 00:43:27 UTC
I am using it for the first time. I have done turbo c++ before. when i type a simple code using iostream.h, the program gives linking errors. why?
Six answers:
mmovses
2010-05-14 01:03:20 UTC
don't forget to include the "using namespace std;" line
jplatt39
2010-05-14 03:15:07 UTC
Are you using the command line or the ide and is it configured correctly? I feel stupid answering these questions because I'm using gcc on Linux but the last time I used Visual C++ (5.0) they recommended on the command line running a bat file which added the include and lib directories (folders) to your %PATH. I know one of the options of the ide tells your computer where to look for the library files (and another tells you where to look for the include fiiles). In a perfect world they would be set correctly but we don't live in a perfect world, so check both.
jobyna
2016-12-14 12:46:28 UTC
you have declared a static monthDay on your type: type DayOfYear { inner maximum: int dayRep; static char *monthDay; so which you would be able to supply an surely variable for it, interior a similar way you may enforce the applications you supply. An occasion definition must be: static char* DayOfYear::monthDay; you additionally can initialise it at that element. static char* DayOfYear::monthDay = "hi worldwide";
?
2016-12-14 12:11:10 UTC
you have declared a static monthDay on your type: type DayOfYear { deepest: int dayRep; static char *monthDay; so which you'll be able to desire to furnish an truthfully variable for it, interior a similar way you'll be able to desire to enforce the applications you furnish. An occasion definition could be: static char* DayOfYear::monthDay; you additionally can initialise it at that factor. static char* DayOfYear::monthDay = "hi international";
?
2010-05-14 00:47:52 UTC
include



don't forget the hash above
eli porter
2010-05-14 00:47:15 UTC
what are the errors?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...