Unexpected Linker errors(LNK2001 AND LNK2019)


#1

I tried a sample project using juce 1.38.I inherit the contentComponent class from QuicktimeMovieComponent class . It shows the linker errors as given below. But all these stuffs are working fine in 1.26. In 1.38 it inherits from ActiveXControlComponent , that is not in 1.26. Help.
The class is as follows:
#ifndef WINDOW_COMPONENT
#define WINDOW_COMPONENT

#include “JHeader.h”

class WindowComponent : //public juce::Component,
public juce::QuickTimeMovieComponent
//public juce::ActiveXControlComponent

{

public:

WindowComponent();
~WindowComponent();	

void paint( juce::Graphics &g );
void resized();	

private :

};
#endif //_WINDOW_COMPONENT

AND THE OUTPUT IS AS FOLLOWS:
Linking…
WindowComponent.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::QuickTimeMovieComponent::parentHierarchyChanged(void)” (?parentHierarchyChanged@QuickTimeMovieComponent@juce@@UAEXXZ)
WindowComponent.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall juce::QuickTimeMovieComponent::visibilityChanged(void)” (?visibilityChanged@QuickTimeMovieComponent@juce@@UAEXXZ)
WindowComponent.obj : error LNK2019: unresolved external symbol “public: __thiscall juce::QuickTimeMovieComponent::QuickTimeMovieComponent(void)” (??0QuickTimeMovieComponent@juce@@QAE@XZ) referenced in function “public: __thiscall WindowComponent::WindowComponent(void)” (??0WindowComponent@@QAE@XZ)
WindowComponent.obj : error LNK2019: unresolved external symbol “public: virtual __thiscall juce::QuickTimeMovieComponent::~QuickTimeMovieComponent(void)” (??1QuickTimeMovieComponent@juce@@UAE@XZ) referenced in function “public: virtual __thiscall WindowComponent::~WindowComponent(void)” (??1WindowComponent@@UAE@XZ)
Debug/MovieComponent.exe : fatal error LNK1120: 4 unresolved externals

Build log was saved at "file://d:\MovieComponent\Debug\BuildLog.htm"
MovieComponent - 5 error(s), 0 warning(s)


#2

You have done a “rebuild all”, right? That just looks like the errors you get when the compiler doesn’t rebuild everything it needs to.


#3