Problema tecnico
Von: Pegasus (noname@nowhere.com) [Profil]
Datum: 13.05.2008 19:22
Message-ID: <4829ce60$0$41662$4fafbaef@reader4.news.tin.it>
Newsgroup: it.comp.lang.c++
Datum: 13.05.2008 19:22
Message-ID: <4829ce60$0$41662$4fafbaef@reader4.news.tin.it>
Newsgroup: it.comp.lang.c++
Abbiamo il seguente programma:
int OCR_main( const int argc, const char * argv[] ) throw()
{
std::vector< std::string > non_options;
non_options.push_back( argv [0] );
}
int ErrorLevel;
int main ()
{
ndInitSystem ();
pseudoExec ( (void *)(&OCR_main), "Ocrad", "ms0:/ocrad.pgm",
&ErrorLevel);
}
Io sono un programmatore C, ma non ancora C++.
Quindi cerco qualcuno che mi aiuti.
C'è un problema nella riga:
std::vector< std::string > non_options;
Il sistema esegue la riga, ma quando
viene poi eseguito il comando:
non_options.push_back( argv [0] );
si verifica un crash dell'emulatore.
Vorrei sapere cosa fa di preciso questa
chiamata:
std::vector< std::string > non_options;
e come viene tradotta internamente dal
compilatore (c'è qualche chiamata nella
libreria standard del C++?)
Grazie a tutti.
[ Auf dieses Posting antworten ]
