Re: HELP : visualC++ with STL roguewave => errorC2079(first' uses undefined class...
akira2x3x@yahoo.fr wrote:
I get this error while compiling with visualc++ and STL
roguewave. With STL microsoft everything work fine.
Does it? The code you show has undefined behavior. Just
because the compiler doesn't complain doesn't mean that
everything is fine (although it likely is in this case).
[...]
What I understand as it's not possible to compile with visual
c++ and using roguewave STL this kind of code =>
class Tempo
{
...
std::vector<std::pair<Tempo,bool>> _data;
}
This code has undefined behavior. Which means that it is wrong,
but a compiler is not required to diagnose the error. G++ fails
to compile it as well; when invoked with maximum checking
(-pedantic -std=c++98 -D_GLIBCXX_CONCEPT_CHECKS -D_GLIBCXX_DEBUG
-D_GLIBCXX_DEBUG_PEDANTIC) it gives the following errors:
...
incomplete.cc:6: error: forward declaration of 'class Tempo'
(After having corrected the obvious typos, of course.)
--
James Kanze GABI Software
Conseils en informatique orient?e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S?mard, 78210 St.-Cyr-l'?cole, France, +33 (0)1 30 23 00 34
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]