|
From: Napoleon A. <nah...@so...> - 2002-09-23 18:45:43
|
Hello, I'm trying to build a sample program from "C++ In Action" I have all the = general files in a Library and compiled all to create WinLib.a. I then = created the main project with the rest of the files. Under = >Project>Options I included the Path to my Library under both Library = Directories and Include Directories. When I compile the program this is = the error that I get. I'll appreaciate an explanation and a solution = please. Thanks. Napoleon. Building Makefile: "C:\Projects\PortCalck\Makefile.win" Executing make... mingw32-make.exe -f "C:\Projects\PortCalck\Makefile.win" all windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=20 g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o MenuTable.o = Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o Store.o SymTab.o = View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" = -L"C:\Projects\WinLib" -I"C:\MinGW\include" -I"C:\MinGW\include\c++" = -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D0x0300 = -DSTRICT -s -mwindows Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiRNS_15ModalControllerE+0x= 11):Commander.cpp: undefined reference to = `_ZN6Dialog9ModalProcEP6HWND__jjl@16' Ctrl.o(.text$_ZN4View8GetInputEv+0x16):Ctrl.cpp: undefined reference to = `Win::Edit::GetText() const' Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x17):Ctrl.cpp: undefined = reference to `Menu::DropDown::RefreshPopup(HMENU__*, int)' Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPKc+0x2e):Ctrl.cpp: = undefined reference to `Cmd::Vector::CmdToId(char const*) const' LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3DowEPcij+0x82):LoadDlg= .cpp: undefined reference to `Win::Exception::Exception(std::string = const&, std::string const&, unsigned long)' Main.o(.text+0x72):Main.cpp: undefined reference to = `Win::ClassMaker::ClassMaker(char const*, HINSTANCE__*)' Main.o(.text+0x83):Main.cpp: undefined reference to = `Win::ClassMaker::SetIcons(int)' Main.o(.text+0xab):Main.cpp: undefined reference to = `Win::Maker::Maker(char const*, HINSTANCE__*)' Main.o(.text+0xfa):Main.cpp: undefined reference to = `Win::Maker::Create(Win::Controller&, char const*)' Main.o(.text+0x143):Main.cpp: undefined reference to = `Win::MsgPrepro::Pump()' Main.o(.text$_ZN9SmallIconD1Ev+0xd):Main.cpp: undefined reference to = `Icon::~Icon()' Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: undefined reference to = `Icon::~Icon()' SaveDlg.o(.text+0x7b):SaveDlg.cpp: undefined reference to = `Win::Edit::GetText() const' SymTab.o(.text+0x1da):SymTab.cpp: undefined reference to = `Win::Exception::Exception(std::string const&, std::string const&, = unsigned long)' View.o(.text+0x51):View.cpp: undefined reference to = `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' View.o(.text+0x12d):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x178):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x1c3):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x1ec):View.cpp: undefined reference to = `Win::Dow::SubClass(Win::SubController*)' View.o(.text+0x239):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x27b):View.cpp: undefined reference to = `Font::Stock::GetTextSize(int&, int&)' View.o(.text+0x429):View.cpp: undefined reference to = `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' View.o(.text+0x505):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x550):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x59b):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x5c4):View.cpp: undefined reference to = `Win::Dow::SubClass(Win::SubController*)' View.o(.text+0x611):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x653):View.cpp: undefined reference to = `Font::Stock::GetTextSize(int&, int&)' View.o(.text+0x7d3):View.cpp: undefined reference to = `Menu::DropDown::AttachToWindow(HWND__*)' View.o(.text+0x952):View.cpp: undefined reference to = `Win::Edit::Clear()' View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x33):View.cpp: = undefined reference to `InitCommonControlsEx@4' View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x87):View.cpp: = undefined reference to `Win::Exception::Exception(std::string const&, = std::string const&, unsigned long)' View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f):View.cpp: undefined = reference to `CreateStatusWindowA@16' View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x75):View.cpp: undefined = reference to `Win::Exception::Exception(std::string const&, std::string = const&, unsigned long)' View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x25):View.cpp: = undefined reference to `Win::ChildMaker::ChildMaker(char const*, = Win::Dow, int)' mingw32-make.exe: *** [PortCalk.exe] Error 1 Execution terminated --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 |