MESSAGE
DATE | 2008-09-10 |
FROM | Ruben
|
SUBJECT | Subject: [NYLXS - HANGOUT] Vectors as parameters in constructors
|
Hello I'm working out an exercise with vectors and classes. I have a vector defined in a constructor which is just failing to compile with a systax error complaint by gcc:
The code is here:
http://www.nylxs.com/docs/workshops/recepe.h.html
test_cast.C:13:18: recepe: No such file or directory In file included from recepe.C:13: recepe.h:112: error: syntax error before `&' token recepe.h:113: error: syntax error before `&' token recepe.h:117: error: syntax error before `)' token
I thought at first that the trouble was that my class type wasn't being accepted as a type for the vector, but even when I swap out Ingr for int, this line still fails.
Ruben
-- http://www.mrbrklyn.com - Interesting Stuff http://www.nylxs.com - Leadership Development in Free Software
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998
http://fairuse.nylxs.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
"Yeah - I write Free Software...so SUE ME"
"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
"> I'm an engineer. I choose the best tool for the job, politics be damned.< You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. I guess you missed that one."
© Copyright for the Digital Millennium
|
|