Article View: alt.comp.lang.learn.c-c++
Article #675Re: Error MYSQL.H LineNo Too many types in declaration
From: Phlip
Date: Sun, 27 May 2001 18:07
Date: Sun, 27 May 2001 18:07
19 lines
1920 bytes
1920 bytes
Proclaimed Rubber Ducky from the mountaintops: > #define def_host_name NULL /*host to connecto to (default localhost) */ > cin >> def_host_name; Please learn some C++ before diving into a custom library like MySQL.lib. In this case, you used #define to tell the compiler to replace every "def_host_name" it sees with "NULL". NULL is typically 0. Then you say 'cin >> 0', and the compiler goes "wha??". Read /Accelerate C++/, and then use the 'std::string' object. -- Phlip phlip_cpp@my-deja.com ============== http://phlip.webjump.com ============== -- Sampling is the sincerest form of flattery --
Technical Details
Message-ID:
<9erfo6$cff@dispatch.concentric.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!newsfeed.berkeley.edu!ucberkeley!sjc1.nntp.concentric.net!newsfeed.concentric.net!global-news-masterReferences:
<O4bQ6.22830$PQ5.2471690@news1.cableinet.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,6f5917ae2da25166 X-Google-Attributes: gid109fba,public X-Google-Thread: fef06,6f5917ae2da25166 X-Google-Attributes: gidfef06,public X-Google-Thread: 114592,6f5917ae2da25166 X-Google-Attributes: gid114592,public X-Google-Thread: 10b7bb,6f5917ae2da25166 X-Google-Attributes: gid10b7bb,public X-Google-Thread: 113e35,6f5917ae2da25166 X-Google-Attributes: gid113e35,public X-Google-ArrivalTime: 2001-05-27 11:10:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!newsfeed.berkeley.edu!ucberkeley!sjc1.nntp.concentric.net!newsfeed.concentric.net!global-news-master From: Phlip <phlip_cpp@my-deja.com> Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c++,comp.lang.c++.leda,ctdl.lang.c++,slac.lang.c++ Subject: Re: Error MYSQL.H LineNo Too many types in declaration Followup-To: alt.comp.lang.learn.c-c++ Date: 27 May 2001 18:07:02 GMT Organization: RobRepMan Productions Lines: 19 Message-ID: <9erfo6$cff@dispatch.concentric.net> References: <O4bQ6.22830$PQ5.2471690@news1.cableinet.net> NNTP-Posting-Host: 64.0.148.135 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.4beta3