ok, then I got this error
g++ -Wall -c money.cxx
g++ -Wall -c lab1main.cxx
g++ money.o lab1main.o -Wall -o lab1main
lab1main.o(.text+0x31): In function `main':
: undefined reference to...
Type: Posts; User: sentienttoaster
ok, then I got this error
g++ -Wall -c money.cxx
g++ -Wall -c lab1main.cxx
g++ money.o lab1main.o -Wall -o lab1main
lab1main.o(.text+0x31): In function `main':
: undefined reference to...
my code is exactly as it is above, with his corrections. my errors are these
g++ -Wall -c lab1main.cxx
lab1main.cxx: In function `int main()':
lab1main.cxx:9: no matching function for call to...
ok, I have done what was posted, but it didn't help, I am using a makefile, could this code be wrong?
lab1main : money.o lab1main.o
g++ money.o lab1main.o -Wall -o lab1main
money.o :...
I know this makes me look really stupid, but what would that look like?
g++ -Wall -c money.cxx
money.cxx:12: prototype for `money::money(long int)' does not match any in
class `money'
money.h:12: candidates are: money::money(const money&)
money.h:15: ...
I have some problems with a class in my program, I have a header file and a .cxx file which I can change that actually contain my class, and a .cxx file that has my main which I cannot touch. Here is...
Ok, I just found my old Amiga 500, and have some problems with it. I tried to insert Plutos into the drive and run it, but is gives me a "software failure: waiting for software activity to end" is...
I am runniung knoppix off my cd, and need to know how to save my config file to my hard disk, and be able to access it everytime, and also how to go about changing the config file to accept my...
extremely simple question, just wanted to make sure of the answer. What would the code look like of you wanted to have a function prototype that declared two integers, one of which has a default...
ok, that did it, thanks!!!
I downloaded that and installed that, but nothing happened, its as if the program isn'n even on my computer, there isn't anything special I have to do to use it, is there?
Ok. I am Running Windows XP Home Edition ( don't laugh ) and I wanted to download something that would give me multiple desktops to use. The best one I know of is MSVDM, so I downloaded that,...
ok, I put that into my code, but now I am getting a this error:
(63) : error C2601: '>>' : local function definitions are illegal
It starts at the open bracket for the code you gave me, how do I...
disregard the employee::lname=infile.get>>
cout<<employee::lname;
I meant to comment those out
ok. My working code is below. what I now need to do is read from a file, which needs to be done with the overloaded>>. each field I read needs to be assigned to a variable listed in my class. I will...
(49) : error C2059: syntax error : ')'
(49) : error C2660: 'compute' : function does not take 0 parameters
(49) : error C2144: syntax error : missing ')' before type 'int'
Ok, classes are confusing me alot. here some code, and I will give you the error. I'm not entirely sure what is wrong with it, but maybe you can help.
#include<iostream>
#include<fstream>...
that helped, thanks for the advise
hmmm... ok, take the code above, and I am getting these errors now:
(29) : error C2109: subscript requires array or pointer type
(33) : error C2374: 'j' : redefinition; multiple initialization...
ok, that seemed to fix it. Thanks for now, I'm sure I will find trouble again
thanks, I will try that, I am using visual c++ 6.0 (I know I shouldn't be!)
Linking...
n queen.obj : error LNK2001: unresolved external symbol "int * col" (?col@@3PAHA)
Debug/n queen1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
n...
ok, here is my other program that I am having trouble with. It will look familiar. I have 2 linking errors that I cannot figure out. I hope you can help.
#include <iostream>
#include<ctime>...
ok, for some reason, it is one of those days where I cannot fix simple problems. Anywhere j is used in this code, I either get left operand must be l-value, or I get pointer erros. Take a look.
...
I am going to paste my code. It for what is there, I thin kit should run, but I am getting some wierd errors that I cannot fix. Take a look and see if you can see what is wrong.
...