User Profile
Collapse
-
OK, thanks but what happens if a function is inline? Does this put restrictions on what I can do with it? Also, if I make this function declerations and definitions in one file, is this going to be an hpp or cpp? -
declaring and defining at the same time
How can I define and declare a class and its functions at the same time? Is this posssible? -
Mass of 'already defined' errors on compilation.
During the linking I get the following:
1>Linking...
1>main.obj : error LNK2005: "double __cdecl sigma(class curious2007::pa ir<double,doubl e> const &)" (?sigma@@YANABV ?$pair@NN@curio us2007@@@Z) already defined in Characteristics .obj
1>main.obj : error LNK2005: "double __cdecl sigma_linear(st ruct std::pair<doubl e,double> const &)" (?sigma_linear@ @YANABU?$pair@N N@std@@@Z)... -
Ok, you are right. This code is supposed to draw charts so probably it is not a console application. How can I handle this? Thanks.Leave a comment:
-
curious2007 started a topic fatal error LNK1104: cannot open file 'C:\Users\admin\Documents\Visual.obj'in Cfatal error LNK1104: cannot open file 'C:\Users\admin\Documents\Visual.obj'
[HTML]#include "chartdir.h "
int main(int argc, char *argv[])
{
// The data for the bar chart
double data[] = {85, 156, 179.5, 211, 123};
// The labels for the bar chart
const char *labels[] = {"Mon", "Tue", "Wed", "Thu", "Fri"};
// Create a XYChart object of size 250 x 250 pixels
XYChart... -
I am not sure your answer could solve my problem. To make sure that we are on the same page I am posting the code that is causing the problem:
[HTML]#include "chartdir.h "
int main(int argc, char *argv[])
{
// The data for the bar chart
double data[] = {85, 156, 179.5, 211, 123};
// The labels for the bar chart
const char *labels[] = {"Mon",...Leave a comment:
-
Ok, I have used the new fopen_s function and this solved the problem. Thanks.Leave a comment:
-
warning C4996: 'fopen' was declared deprecated
I do not know how to handle this message:
c:\users\admin\ documents\visua l studio 2005\projects\v ec\vec\fileclas s.cpp(40) : warning C4996: 'fopen' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\st dio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_ DEPRECATE. See... -
RGB, 'mso9.dll' and the 'rename' qualifier
One of my codes start with the following:
[HTML]#import "mso9.dll" no_namespace rename("Documen tProperties", "DocumentProper tiesXL")[/HTML]
However, I get the following warning:
warning C4278: 'RGB': identifier in type library 'mso9.dll' is already a macro; use the 'rename' qualifier
How can I get rid of this warning? -
OK, I have downloaded the mso9.dll and put it under system32 directory. I am not getting that error anymore though the program is still not working. I will post another thread. Thanks.Leave a comment:
-
OK, I have downloaded SDK and integrated it with Visual C++. Now, I get the following error:
fatal error C1083: Cannot open type library file: 'mso9.dll': No such file or directoryLeave a comment:
-
curious2007 started a topic fatal error LNK1104: cannot open file 'C:\Users\admin\Documents\Visual.objin Cfatal error LNK1104: cannot open file 'C:\Users\admin\Documents\Visual.obj
I could not figure out the reason for this error. -
Ok, but this seems a little confusing. There seems to be different versions:
Microsoft® Windows Server 2003 SP1 Platform SDK - April 2005 Edition
Microsoft® Windows Server 2003 SP1 Platform SDK - February 2003 Edition
On the website it says: "The last SDK that will work with VC 6.0 is the February 2003 Edition".
However, I am using Microsoft Vista. Is this going to be compatible with...Leave a comment:
-
Yes, you are right I don't have a Platform SDK under VC. How can I get this? Do I have to reinstall Visual C++ Express?Leave a comment:
-
conversion from 'const double' to 'float'
Hello,
The following code:
[HTML]inline float SIGN(const double &a, const float &b)
{return b>=0 ? (a>=0 ? a:-a) : (a>=0 ? -a:a);}[/HTML]
gives me the warning:
warning C4244: 'return' : conversion from 'const double' to 'float', possible loss of data
how can I get rid of this? -
Cannot open include file: 'ole2.h'
Hello,
I am getting the following error:
1>main.cpp
1>c:\program files\microsoft visual studio 8\vc\include\co mdef.h(24) : fatal error C1083: Cannot open include file: 'ole2.h': No such file or directory
1> This error occurred in injected text:
1>
1>//+++ Start Injected Code
1>#injected_lin e 12 "c:\\users\\adm in\\documents\\ visual studio 2005\\projects\ \vec\\vec\\exce ldriver.hpp"... -
Ok, apparently I have not included some of the hpp files. Now, the problem is solved. However, just to make this clear are you suggesting that I should include all of the hpp files in all of the cpp files in my project?Leave a comment:
-
unresolved externals
I am getting the following type of error:
1>Compiling manifest to resources...
1>Linking...
1>main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall MatrixIterative Solver<double,i nt>::~MatrixIte rativeSolver<do uble,int>(void) " (??1?$MatrixIte rativeSolver@NH @@UAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol... -
OK, I have found it it was before line 28 of matrixsolvermec hanisms.cpp.Leave a comment:
-
what you say makes sense. However, I am having difficulty in identifying where that missing ";" is. The exact error message is as follows:
1>main.cpp
1>c:\users\ek\d ocuments\visual studio 2005\projects\v ec\vec\matrixso lvermechanisms. cpp(28) : error C2143: syntax error : missing ';' before '<'
1>c:\users\ek\d ocuments\visual studio 2005\projects\v ec\vec\matrixso lvermechanisms. cpp(28) : error C2182:...Leave a comment:
No activity results to display
Show More
Leave a comment: