Hi guys, there is something really strange going on with an assignment due by midnight!!
I have read archives, advice etc and can't relate it to what I am doing.

I have to write a library and implementation file and then a program that includes these.

The library is ok I think, and so is the implementation file which I have compiled to .o (prob wrong terminology but not much of a clue for this stuff.)

My driver file is called quadraticDriver.cpp yet when I attempt to compile it (g++ -c quadraticDriver.cpp) there are some really strange errors.


So here are some of them, I will be watching for the postings and any ideas would really be appreciated!!



QuadraticDriver.cpp:1: error: syntax error before `/' token
In file included from /usr/include/c++/3.3.2/i386-redhat-linux/bits/c++locale.h
42,
from /usr/include/c++/3.3.2/iosfwd:46,
from /usr/include/c++/3.3.2/ios:44,
from /usr/include/c++/3.3.2/ostream:45,
from /usr/include/c++/3.3.2/iostream:45,
from QuadraticDriver.cpp:3:
/usr/include/langinfo.h:48: error: `__LC_TIME' was not declared in this scope
/usr/include/langinfo.h:48: error: enumerator value for `ABDAY_1' not integer
constant
/usr/include/langinfo.h:241: error: `__LC_COLLATE' was not declared in this
scope
/usr/include/langinfo.h:241: error: enumerator value for `_NL_COLLATE_NRULES'
not integer constant
/usr/include/langinfo.h:265: error: `__LC_CTYPE' was not declared in this scope
/usr/include/langinfo.h:265: error: enumerator value for `_NL_CTYPE_CLASS' not
integer constant
/usr/include/langinfo.h:356: error: `__LC_MONETARY' was not declared in this
scope
/usr/include/langinfo.h:356: error: enumerator value for `__INT_CURR_SYMBOL'
not integer constant
/usr/include/langinfo.h:470: error: `__LC_NUMERIC' was not declared in this
scope
/usr/include/langinfo.h:470: error: enumerator value for `__DECIMAL_POINT' not
integer constant
/usr/include/langinfo.h:491: error: `__LC_MESSAGES' was not declared in this
scope
/usr/include/langinfo.h:491: error: enumerator value for `__YESEXPR' not
integer constant
/usr/include/langinfo.h:506: error: `__LC_PAPER' was not declared in this scope
/usr/include/langinfo.h:506: error: enumerator value for `_NL_PAPER_HEIGHT' not
integer constant
/usr/include/langinfo.h:511: error: `__LC_NAME' was not declared in this scope
/usr/include/langinfo.h:511: error: enumerator value for `_NL_NAME_NAME_FMT'
not integer constant
/usr/include/langinfo.h:520: error: `__LC_ADDRESS' was not declared in this
scope
/usr/include/langinfo.h:520: error: enumerator value for `
_NL_ADDRESS_POSTAL_FMT' not integer constant
/usr/include/langinfo.h:535: error: `__LC_TELEPHONE' was not declared in this
scope
/usr/include/langinfo.h:535: error: enumerator value for `
_NL_TELEPHONE_TEL_INT_FMT' not integer constant
/usr/include/langinfo.h:542: error: `__LC_MEASUREMENT' was not declared in this
scope
/usr/include/langinfo.h:542: error: enumerator value for `
_NL_MEASUREMENT_MEASUREMENT' not integer constant
/usr/include/langinfo.h:546: error: `__LC_IDENTIFICATION' was not declared in
this scope
/usr/include/langinfo.h:546: error: enumerator value for `
_NL_IDENTIFICATION_TITLE' not integer constant
QuadraticDriver.cpp: In function `int main()':
QuadraticDriver.cpp:13: error: `cout' undeclared (first use this function)
QuadraticDriver.cpp:13: error: (Each undeclared identifier is reported only
once for each function it appears in.)
QuadraticDriver.cpp:27: error: `cin' undeclared (first use this function)
QuadraticDriver.cpp:31: error: syntax error before `,' token