Jump to content

can compile in terminal but not from VS 2005 IDE, please help.

- - - - -

  • Please log in to reply
3 replies to this topic

#1
liquidmonkey

liquidmonkey

    Newbie

  • Members
  • Pip
  • 3 posts
hello!
win7 x86 with VS 2005

i'm following along an example and they use a terminal window to compile and run the code. the command to compile the code is...

cl testDMC-class.cpp dmc-class.cpp Galil1.lib -EHsc -MD

i looked up the -EHsc part and it has to do with 'exception handling' but not at all sure what the other stuff does.

the people who write the example say that i should be able to compile the code using the Visual Studio IDE but when i hit F5 i get three errors which occur right after it says 'linking...'

any ideas of what i need to do to get the code running from within VS2005?
many thanks for reading :)

the errors are here...
1>dmc-class.obj : error LNK2019: unresolved external symbol "public: __thiscall Galil::Galil(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0Galil@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Controller::Controller(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Controller@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>dmc-class.obj : error LNK2019: unresolved external symbol "public: double __thiscall Galil::commandValue(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?commandValue@Galil@@QAENABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: double __thiscall Controller::Any_Command(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?Any_Command@Controller@@QAENAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>dmc-class.obj : error LNK2019: unresolved external symbol "public: __thiscall Galil::~Galil(void)" (??1Galil@@QAE@XZ) referenced in function "public: void * __thiscall Galil::`scalar deleting destructor'(unsigned int)" (??_GGalil@@QAEPAXI@Z)
1>C:\Users\bobby blobby\Dropbox\Masters Thesis\Code\galil\galilADV\Debug\galilADV.exe : fatal error LNK1120: 3 unresolved externals

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It looks like you haven't told the IDE where to find Galil1.lib
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
liquidmonkey

liquidmonkey

    Newbie

  • Members
  • Pip
  • 3 posts
thanks for your reply.

nOOb alert :(


how do i do that?

#4
liquidmonkey

liquidmonkey

    Newbie

  • Members
  • Pip
  • 3 posts
nevermind, solved.

thanks




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users