Bug 291659

Summary: Unresolved MarbleLineEdit methods when linking marble.exe
Product: [Applications] marble Reporter: Paul Nader <paul.nader>
Component: generalAssignee: marble-bugs
Status: RESOLVED FIXED    
Severity: normal CC: paul.nader
Priority: NOR    
Version: unspecified   
Target Milestone: 1.3 (KDE 4.8)   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Exports the MarbleLineEdit class

Description Paul Nader 2012-01-16 13:27:37 UTC
Version:           unspecified (using KDE 4.6.1) 
OS:                MS Windows

When compiling master @ Commit:ea2638c421aa388036e481ce66d018fa7c4b84d5 on Windows Vista using MS Visual Studio 2008 I get:

2>Linking...
2>QtMainWindow.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleLineEdit::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent@MarbleLineEdit@Marble@@MAEXPAVQMouseEvent@@@Z)
2>QtMainWindow.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleLineEdit::resizeEvent(class QResizeEvent *)" (?resizeEvent@MarbleLineEdit@Marble@@MAEXPAVQResizeEvent@@@Z)
2>C:\Users\paul.nader\Development\marble\build\src\Release\marble.exe : fatal error LNK1120: 2 unresolved externals

Reproducible: Didn't try

Steps to Reproduce:
Clone GIT repository, configure using cmake and compile using MS Visual Studio

Actual Results:  
Linker Error:

2>Linking...
2>QtMainWindow.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleLineEdit::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent@MarbleLineEdit@Marble@@MAEXPAVQMouseEvent@@@Z)
2>QtMainWindow.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleLineEdit::resizeEvent(class QResizeEvent *)" (?resizeEvent@MarbleLineEdit@Marble@@MAEXPAVQResizeEvent@@@Z)
2>C:\Users\paul.nader\Development\marble\build\src\Release\marble.exe : fatal error LNK1120: 2 unresolved externals

Expected Results:  
Should link and produce the marbe.exe executable
Comment 1 Paul Nader 2012-01-16 13:50:25 UTC
Created attachment 67889 [details]
Exports the MarbleLineEdit class
Comment 2 Dennis Nienhüser 2012-01-16 13:56:55 UTC
Git commit 5ba77f173bdaaf77b06fa2f8a942d9253256d302 by Dennis Nienhüser.
Committed on 16/01/2012 at 14:56.
Pushed by nienhueser into branch 'master'.

Export symbols. Patch by Paul Nader, thanks!

M  +3    -1    src/lib/MarbleLineEdit.h

http://commits.kde.org/marble/5ba77f173bdaaf77b06fa2f8a942d9253256d302