Errors when i building amalgamated


#1

I want to build amalgamated and had errors:

ER.obj : error LNK2001: unresolved external symbol “public: __thiscall juce::String::~String(void)” (??1String@juce@@QAE@XZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: __thiscall juce::String::~String(void)” (??1String@juce@@QAE@XZ)
ER.obj : error LNK2001: unresolved external symbol “public: static int __cdecl juce::JUCEApplication::main(class juce::String &,class juce::JUCEApplication * const)” (?main@JUCEApplication@juce@@SAHAAVString@2@QAV12@@Z)
ER.obj : error LNK2001: unresolved external symbol “public: static class juce::String const __stdcall juce::PlatformUtilities::getCurrentCommandLineParams(void)” (?getCurrentCommandLineParams@PlatformUtilities@juce@@SG?BVString@2@XZ)
ER.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::JUCEApplication::unhandledException(class exception const *,class juce::String const &,int)” (?unhandledException@JUCEApplication@juce@@UAEXPBVexception@@ABVSt
ring@2@H@Z)
ER.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::JUCEApplication::systemRequestedQuit(void)” (?systemRequestedQuit@JUCEApplication@juce@@UAEXXZ)
ER.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::JUCEApplication::anotherInstanceStarted(class juce::String const &)” (?anotherInstanceStarted@JUCEApplication@juce@@UAEXABVString@2@@Z)
ER.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall juce::JUCEApplication::moreThanOneInstanceAllowed(void)” (?moreThanOneInstanceAllowed@JUCEApplication@juce@@UAE_NXZ)
ER.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall juce::JUCEApplication::perform(struct juce::ApplicationCommandTarget::InvocationInfo const &)” (?perform@JUCEApplication@juce@@UAE_NABUInvocationInfo@ApplicationComm
andTarget@2@@Z)
ER.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::JUCEApplication::getCommandInfo(int,struct juce::ApplicationCommandInfo &)” (?getCommandInfo@JUCEApplication@juce@@UAEXHAAUApplicationCommandInfo@2@@Z)
ER.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::JUCEApplication::getAllCommands(class juce::Array<int,class juce::DummyCriticalSection> &)” (?getAllCommands@JUCEApplication@juce@@UAEXAAV?$Array@HVDummyCritic
alSection@juce@@@2@@Z)
ER.obj : error LNK2001: unresolved external symbol “public: virtual class juce::ApplicationCommandTarget * __thiscall juce::JUCEApplication::getNextCommandTarget(void)” (?getNextCommandTarget@JUCEApplication@juce@@UAEPAVApplicationCommandTarget@2@XZ
)
ER.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::JUCEApplication::actionListenerCallback(class juce::String const &)” (?actionListenerCallback@JUCEApplication@juce@@UAEXABVString@2@@Z)
ER.obj : error LNK2001: unresolved external symbol “protected: __thiscall juce::JUCEApplication::JUCEApplication(void)” (??0JUCEApplication@juce@@IAE@XZ)
ER.obj : error LNK2001: unresolved external symbol “public: __thiscall juce::String::String(unsigned short const * const)” (??0String@juce@@QAE@QBG@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: __thiscall juce::String::String(unsigned short const * const)” (??0String@juce@@QAE@QBG@Z)
ER.obj : error LNK2001: unresolved external symbol “public: virtual __thiscall juce::JUCEApplication::~JUCEApplication(void)” (??1JUCEApplication@juce@@UAE@XZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::maximiseButtonPressed(void)” (?maximiseButtonPressed@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::minimiseButtonPressed(void)” (?minimiseButtonPressed@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::closeButtonPressed(void)” (?closeButtonPressed@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual class juce::BorderSize const __thiscall juce::DocumentWindow::getContentComponentBorder(void)” (?getContentComponentBorder@DocumentWindow@juce@@UAE?BVBorderSize@2@XZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual class juce::BorderSize const __thiscall juce::DocumentWindow::getBorderThickness(void)” (?getBorderThickness@DocumentWindow@juce@@UAE?BVBorderSize@2@XZ)
MainWindow.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall juce::DocumentWindow::getDesktopWindowStyleFlags(void)const " (?getDesktopWindowStyleFlags@DocumentWindow@juce@@UBEHXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::activeWindowStatusChanged(void)” (?activeWindowStatusChanged@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual class juce::ComponentPeer * __thiscall juce::Component::createNewPeer(int,void *)” (?createNewPeer@Component@juce@@MAEPAVComponentPeer@2@HPAX@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::Component::internalRepaint(int,int,int,int)” (?internalRepaint@Component@juce@@MAEXHHHH@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::colourChanged(void)” (?colourChanged@Component@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::inputAttemptWhenModal(void)” (?inputAttemptWhenModal@Component@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall juce::Component::canModalEventBeSentToComponent(class juce::Component const *)” (?canModalEventBeSentToComponent@Component@juce@@UAE_NPBV12@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::handleCommandMessage(int)” (?handleCommandMessage@Component@juce@@UAEXH@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::broughtToFront(void)” (?broughtToFront@Component@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::ResizableWindow::parentSizeChanged(void)” (?parentSizeChanged@ResizableWindow@juce@@MAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::ResizableWindow::childBoundsChanged(class juce::Component *)” (?childBoundsChanged@ResizableWindow@juce@@MAEXPAVComponent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::ResizableWindow::moved(void)” (?moved@ResizableWindow@juce@@MAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::resized(void)” (?resized@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::TopLevelWindow::focusOfChildComponentChanged(enum juce::Component::FocusChangeType)” (?focusOfChildComponentChanged@TopLevelWindow@juce@@MAEXW4Focus
ChangeType@Component@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::focusLost(enum juce::Component::FocusChangeType)” (?focusLost@Component@juce@@UAEXW4FocusChangeType@12@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::focusGained(enum juce::Component::FocusChangeType)” (?focusGained@Component@juce@@UAEXW4FocusChangeType@12@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::modifierKeysChanged(class juce::ModifierKeys const &)” (?modifierKeysChanged@Component@juce@@UAEXABVModifierKeys@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall juce::Component::keyStateChanged(bool)” (?keyStateChanged@Component@juce@@UAE_N_N@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall juce::Component::keyPressed(class juce::KeyPress const &)” (?keyPressed@Component@juce@@UAE_NABVKeyPress@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::paintOverChildren(class juce::Graphics &)” (?paintOverChildren@Component@juce@@UAEXAAVGraphics@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::paint(class juce::Graphics &)” (?paint@DocumentWindow@juce@@UAEXAAVGraphics@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual class juce::MouseCursor const __thiscall juce::Component::getMouseCursor(void)” (?getMouseCursor@Component@juce@@UAE?BVMouseCursor@2@XZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::enablementChanged(void)” (?enablementChanged@Component@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual class juce::KeyboardFocusTraverser * __thiscall juce::Component::createFocusTraverser(void)” (?createFocusTraverser@Component@juce@@UAEPAVKeyboardFocusTraverser@2@XZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::lookAndFeelChanged(void)” (?lookAndFeelChanged@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall juce::Component::contains(int,int)” (?contains@Component@juce@@UAE_NHH@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall juce::Component::hitTest(int,int)” (?hitTest@Component@juce@@UAE_NHH@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::childrenChanged(void)” (?childrenChanged@Component@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::parentHierarchyChanged(void)” (?parentHierarchyChanged@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::minimisationStateChanged(bool)” (?minimisationStateChanged@Component@juce@@UAEX_N@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::userTriedToCloseWindow(void)” (?userTriedToCloseWindow@DocumentWindow@juce@@UAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::TopLevelWindow::addToDesktop(int,void *)” (?addToDesktop@TopLevelWindow@juce@@UAEXHPAX@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::ResizableWindow::visibilityChanged(void)” (?visibilityChanged@ResizableWindow@juce@@MAEXXZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::setName(class juce::String const &)” (?setName@DocumentWindow@juce@@UAEXABVString@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::mouseWheelMove(class juce::MouseEvent const &,float,float)” (?mouseWheelMove@Component@juce@@UAEXABVMouseEvent@2@MM@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::DocumentWindow::mouseDoubleClick(class juce::MouseEvent const &)” (?mouseDoubleClick@DocumentWindow@juce@@UAEXABVMouseEvent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::mouseUp(class juce::MouseEvent const &)” (?mouseUp@Component@juce@@UAEXABVMouseEvent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::ResizableWindow::mouseDrag(class juce::MouseEvent const &)” (?mouseDrag@ResizableWindow@juce@@MAEXABVMouseEvent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::ResizableWindow::mouseDown(class juce::MouseEvent const &)” (?mouseDown@ResizableWindow@juce@@MAEXABVMouseEvent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::mouseExit(class juce::MouseEvent const &)” (?mouseExit@Component@juce@@UAEXABVMouseEvent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::mouseEnter(class juce::MouseEvent const &)” (?mouseEnter@Component@juce@@UAEXABVMouseEvent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::mouseMove(class juce::MouseEvent const &)” (?mouseMove@Component@juce@@UAEXABVMouseEvent@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “protected: virtual void __thiscall juce::Component::handleMessage(class juce::Message const &)” (?handleMessage@Component@juce@@MAEXABVMessage@2@@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual __thiscall juce::DocumentWindow::~DocumentWindow(void)” (??1DocumentWindow@juce@@UAE@XZ)
MainWindow.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::Component::setVisible(bool)” (?setVisible@Component@juce@@UAEX_N@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: void __thiscall juce::Component::centreWithSize(int,int)” (?centreWithSize@Component@juce@@QAEXHH@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: void __thiscall juce::DocumentWindow::setTitleBarTextCentred(bool)” (?setTitleBarTextCentred@DocumentWindow@juce@@QAEX_N@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: void __thiscall juce::ResizableWindow::setResizable(bool,bool)” (?setResizable@ResizableWindow@juce@@QAEX_N0@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: __thiscall juce::DocumentWindow::DocumentWindow(class juce::String const &,class juce::Colour const &,int,bool)” (??0DocumentWindow@juce@@QAE@ABVString@1@ABVColour@1@H_N@Z)
MainWindow.obj : error LNK2001: unresolved external symbol “public: static class juce::Colour const juce::Colours::lightcoral” (?lightcoral@Colours@juce@@2VColour@2@B)
Debug/ER.exe : fatal error LNK1120: 70 unresolved externals
Error executing link.exe.

ER.exe - 73 error(s), 1 warning(s)

I build in VC++6.0


#2

Well you’re obviously not giving it any of the actual juce code to link to. You’d expect to see errors like that if you don’t actually add the amalgamated file to your build.


#3

:oops: so true!