Category : visual-studio-2010

I have a Microsoft Visual 2010 project that runs fine in the Win-32 compilation setting. I am running on Windows 10. I am trying to use the x64 to build for 64-bit but that is when I encounter the LNK errors (examples below): error LNK2028: unresolved token (0A00015D) "extern "C" unsigned char __cdecl UcanDeinitCan(unsigned char)" ..

Read more

I have a project "First" with first.cpp #include<iostream> #include "second.h" using namespace std; int main() { #ifdef MY_MACRO1 cout << "MY_MACRO1 in first" << endl; #endif second(); return 0; } and a static library "Second" with second.cpp #include <iostream> #include "second.h" using namespace std; int second() { #ifdef MY_MACRO1 cout << "MY_MACRO1 in second" << ..

Read more

I get the above error when I use this code. //Programming Assignment 1 #include <iostream> #include <fstream> #include <string> using namespace std; //Function Prototypes void getname(ofstream); //void Evaluate_holesterol(ofstream); //void Evaluate_BMI(ofstream); //void Evaluate_bloodpressure(ofstream); int main() { //Open output file ofstream pfile; pfile.open("Profile.txt"); getname(pfile); //Evaluate_holesterol(pfile); //Evaluate_BMI(pfile); //Evaluate_bloodpressure(pfile); //pfile.close(); system("pause"); return 0; } //Function to get patient’s name ..

Read more