error when i try to use webengine module in qt - c++

Hellow everyone recently i'am trying to use qtwebengine in qt but every time i get an error
this is my code :
#include <QApplication>
#include<QtWebEngineWidgets/QtWebEngineWidgets>>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWebEngineView j;
j.setUrl(QUrl("elodream.herokuapp.com"));
j.resize(600,600);
j.show();
return a.exec();
}
error :
main.obj:-1: erreur : LNK2019: symbole externe non r‚solu "__declspec(dllimport) public: __cdecl QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)" (__imp_??0QQmlDebuggingEnabler##QEAA#_N#Z) r‚f‚renc‚ dans la fonction "void __cdecl `dynamic initializer for 'qQmlEnableDebuggingHelper''(void)" (??__EqQmlEnableDebuggingHelper##YAXXZ)
main.obj:-1: erreur : LNK2019: symbole externe non r‚solu "__declspec(dllimport) public: __cdecl QWebEngineView::QWebEngineView(class QWidget *)" (__imp_??0QWebEngineView##QEAA#PEAVQWidget###Z) r‚f‚renc‚ dans la fonction main
main.obj:-1: erreur : LNK2019: symbole externe non r‚solu "__declspec(dllimport) public: virtual __cdecl QWebEngineView::~QWebEngineView(void)" (__imp_??1QWebEngineView##UEAA#XZ) r‚f‚renc‚ dans la fonction main
main.obj:-1: erreur : LNK2019: symbole externe non r‚solu "__declspec(dllimport) public: void __cdecl QWebEngineView::setUrl(class QUrl const &)" (__imp_?setUrl#QWebEngineView##QEAAXAEBVQUrl###Z) r‚f‚renc‚ dans la fonction main
C:\Users\Pc\Documents\build-Jstore-Desktop_Qt_6_2_4_MSVC2019_64bit-Debug\debug\Jstore.exe:-1: erreur : LNK1120: 4 externes non r‚solus
C:\Users\Pc\Documents\Jstore\main.cpp:3: avertissement : Extra tokens at end of #include directive (fix available)

Related

UE4 LNK2001 Error when deriving from K2Node_AnimGetter

I am trying to derive from K2Node_AnimGetter to add some functionality to it.
However I get some unresolved external symbol LNK2001 errors when I try to compile it.
I have no problem to compile when deriving from K2Node_CallFunction (from what AnimGetter derive itself).
I tried to include some dependencies like AnimGraph in the MyGameEditor.Build.cs but with no result...
Am I missing something ?
K2Node_MyAnimGetter.h
#pragma once
#include "CoreMinimal.h"
#include "K2Node_AnimGetter.h"
#include "K2Node_MyAnimGetter.generated.h"
UCLASS()
class MYGAMEEDITOR_API UK2Node_MyAnimGetter : public UK2Node_AnimGetter
{
GENERATED_BODY()
};
K2Node_MyAnimGetter.cpp
#include "K2Node_MyAnimGetter.h"
// nothing else since my class is empty
MyGameEditor.Build.cs
using UnrealBuildTool;
public class MyGameEditor : ModuleRules
{
public MyGameEditor(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "BlueprintGraph", "AnimGraph", "AnimGraphRunTime" });
PrivateDependencyModuleNames.AddRange(new string[] { "Engine", "UnrealEd", "BlueprintGraph", "AnimGraph", "AnimGraphRunTime", "KismetCompiler" });
}
}
Error logs :
1>K2Node_MyAnimGetter.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::Serialize(class FArchive &)" (?Serialize#UK2Node_AnimGetter##UEAAXAEAVFArchive###Z)
1>K2Node_MyAnimGetter.gen.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::Serialize(class FArchive &)" (?Serialize#UK2Node_AnimGetter##UEAAXAEAVFArchive###Z)
1>K2Node_MyAnimGetter.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::PostPasteNode(void)" (?PostPasteNode#UK2Node_AnimGetter##UEAAXXZ)
1>K2Node_MyAnimGetter.gen.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::PostPasteNode(void)" (?PostPasteNode#UK2Node_AnimGetter##UEAAXXZ)
1>K2Node_MyAnimGetter.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::AllocateDefaultPins(void)" (?AllocateDefaultPins#UK2Node_AnimGetter##UEAAXXZ)
1>K2Node_MyAnimGetter.gen.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::AllocateDefaultPins(void)" (?AllocateDefaultPins#UK2Node_AnimGetter##UEAAXXZ)
1>K2Node_MyAnimGetter.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual class FText __cdecl UK2Node_AnimGetter::GetNodeTitle(enum ENodeTitleType::Type)const " (?GetNodeTitle#UK2Node_AnimGetter##UEBA?AVFText##W4Type#ENodeTitleType###Z)
1>K2Node_MyAnimGetter.gen.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual class FText __cdecl UK2Node_AnimGetter::GetNodeTitle(enum ENodeTitleType::Type)const " (?GetNodeTitle#UK2Node_AnimGetter##UEBA?AVFText##W4Type#ENodeTitleType###Z)
1>K2Node_MyAnimGetter.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual bool __cdecl UK2Node_AnimGetter::CanCreateUnderSpecifiedSchema(class UEdGraphSchema const *)const " (?CanCreateUnderSpecifiedSchema#UK2Node_AnimGetter##UEBA_NPEBVUEdGraphSchema###Z)
1>K2Node_MyAnimGetter.gen.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual bool __cdecl UK2Node_AnimGetter::CanCreateUnderSpecifiedSchema(class UEdGraphSchema const *)const " (?CanCreateUnderSpecifiedSchema#UK2Node_AnimGetter##UEBA_NPEBVUEdGraphSchema###Z)
1>K2Node_MyAnimGetter.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual bool __cdecl UK2Node_AnimGetter::IsActionFilteredOut(class FBlueprintActionFilter const &)" (?IsActionFilteredOut#UK2Node_AnimGetter##UEAA_NAEBVFBlueprintActionFilter###Z)
1>K2Node_MyAnimGetter.gen.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual bool __cdecl UK2Node_AnimGetter::IsActionFilteredOut(class FBlueprintActionFilter const &)" (?IsActionFilteredOut#UK2Node_AnimGetter##UEAA_NAEBVFBlueprintActionFilter###Z)
1>K2Node_MyAnimGetter.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::GetMenuActions(class FBlueprintActionDatabaseRegistrar &)const " (?GetMenuActions#UK2Node_AnimGetter##UEBAXAEAVFBlueprintActionDatabaseRegistrar###Z)
1>K2Node_MyAnimGetter.gen.cpp.obj : error LNK2001: symbole externe non resolu "public: virtual void __cdecl UK2Node_AnimGetter::GetMenuActions(class FBlueprintActionDatabaseRegistrar &)const " (?GetMenuActions#UK2Node_AnimGetter##UEBAXAEAVFBlueprintActionDatabaseRegistrar###Z)
1>R:\SVN\MyGame\Binaries\Win64\UE4Editor-MyGameEditor.dll : fatal error LNK1120: 7 externes non resolus
If you look into the UK2Node_AnimGetter class you will notice that it is UCLASS(MinimalAPI). This means that the class is accessible outside of its Module, but its internal functions are not exported.
You will also notice that all of the functions with linker errors are virtual override. By overriding these functions you maybe able to export them manually and thus fix the linking errors.

LNK2001 errors when trying to using CryptoPP lib in a Qt Project

I am trying to use CryptoPP lib in a Qt project.
I first built Crytplib using Visual C++ 2019. I changed Runtime options to MDd (Multithread Debug DLL). It generated cryptlib.lib.
In Qt, I added:
LIBS += -L$$PWD/../libs/CryptoPP/x64/Output/Release/ -lcryptlib
INCLUDEPATH += $$PWD/../libs/CryptoPP
Compiling gives the following errors:
cryptlib.lib(keccak_core.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(ecp.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(rng.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(rijndael_simd.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(des.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(gfpcrypt.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(hmac.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(gf2n.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(ec2n.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(modes.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(oaep.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(sha3.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(pssr.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(nbtheory.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(sha_simd.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(rijndael.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(hrtimer.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(base64.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(files.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(mqueue.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(dll.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(pubkey.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(pkcspad.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(asn.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(rsa.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(iterhash.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(sha.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(randpool.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(osrng.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(algparam.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(queue.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(basecode.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(hex.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(cryptlib.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(misc.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(filters.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(integer.obj) : error LNK2001: symbole externe non résolu __CxxFrameHandler4
cryptlib.lib(keccak_core.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(ecp.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(rng.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(rijndael_simd.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(des.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(gfpcrypt.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(hmac.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(gf2n.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(ec2n.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(modes.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(oaep.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(sha3.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(pssr.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(nbtheory.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(sha_simd.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(rijndael.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(hrtimer.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(base64.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(files.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(mqueue.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(dll.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(pubkey.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(pkcspad.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(asn.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(rsa.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(iterhash.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(sha.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(randpool.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(osrng.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(algparam.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(queue.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(basecode.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(hex.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(cryptlib.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(misc.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(filters.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(integer.obj) : error LNK2001: symbole externe non résolu __GSHandlerCheck_EH4
cryptlib.lib(integer.obj) : error LNK2019: symbole externe non résolu __std_reverse_trivially_swappable_1 référencé dans la fonction "void __cdecl std::reverse<unsigned char *>(unsigned char * const,unsigned char * const)" (??$reverse#PEAE#std##YAXQEAE0#Z)
debug\prxQWT.exe : fatal error LNK1120: 3 externes non résolus
It seems that a lot of people are having trouble to make it work with Qt, and no one seems to have the correct way to do it. By the way, I am using Qt 5.12.0.
I finally solved this. It was due to the fact that I was building Crypto++ with MSVC2019 while Qt was built with MSVC2015.

Probleme for using PCL 1.6.0 on VS2010

I'm trying to some 3D stuff with PCL 1.6.0 on Visual studio 2010 x64.
I've started my coding : ` pcl::PointCloud::Ptr cloud (new pcl::PointCloud);
int iRet = pcl::io::loadPCDFile<pcl::PointXYZ>("fileout.pcd", *cloud);
boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer (new pcl::visualization::PCLVisualizer( "3D Viewer"));
viewer->setBackgroundColor(0, 0,0);
//viewer->addPointCloud<pcl::PointXYZ>(cloud, "sample cloud");`
When I compile this code, it is ok no problem.
But when i try to compile with the commented line, I've serveral external non resolvable symbols
Thanks for you help.
F.
Error LNK2019: symbole externe non résolu "protected: __cdecl vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase *,class vtkSmartPointerBase::NoReference const &)" (??0vtkSmartPointerBase##IEAA#PEAVvtkObjectBase##AEBVNoReference#0##Z) référencé dans la fonction "protected: __cdecl vtkSmartPointer::vtkSmartPointer(class vtkPoints *,class vtkSmartPointerBase::NoReference const &)" (??0?$vtkSmartPointer#VvtkPoints####IEAA#PEAVvtkPoints##AEBVNoReference#vtkSmartPointerBase###Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: __cdecl vtkSmartPointerBase::~vtkSmartPointerBase(void)" (??1vtkSmartPointerBase##QEAA#XZ) référencé dans la fonction "public: __cdecl vtkSmartPointer::~vtkSmartPointer(void)" (??1?$vtkSmartPointer#VvtkPoints####QEAA#XZ) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: __cdecl vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase *)" (??0vtkSmartPointerBase##QEAA#PEAVvtkObjectBase###Z) référencé dans la fonction "public: __cdecl vtkSmartPointer::vtkSmartPointer(class vtkSmartPointer const &)" (??$?0VvtkPolyData###?$vtkSmartPointer#VvtkDataSet####QEAA#AEBV?$vtkSmartPointer#VvtkPolyData#####Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: __cdecl vtkSmartPointerBase::vtkSmartPointerBase(void)" (??0vtkSmartPointerBase##QEAA#XZ) référencé dans la fonction "public: __cdecl vtkSmartPointer::vtkSmartPointer(void)" (??0?$vtkSmartPointer#VvtkLODActor####QEAA#XZ) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: class vtkCellArray * __cdecl vtkPolyData::GetVerts(void)" (?GetVerts#vtkPolyData##QEAAPEAVvtkCellArray##XZ) référencé dans la fonction "private: void __cdecl pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData(class pcl::visualization::PointCloudGeometryHandler const &,class vtkSmartPointer &,class vtkSmartPointer &)" (??$convertPointCloudToVTKPolyData#UPointXYZ#pcl###PCLVisualizer#visualization#pcl##AEAAXAEBV?$PointCloudGeometryHandler#UPointXYZ#pcl###12#AEAV?$vtkSmartPointer#VvtkPolyData####AEAV?$vtkSmartPointer#VvtkIdTypeArray#####Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: class vtkSmartPointerBase & __cdecl vtkSmartPointerBase::operator=(class vtkObjectBase *)" (??4vtkSmartPointerBase##QEAAAEAV0#PEAVvtkObjectBase###Z) référencé dans la fonction "public: class vtkSmartPointer & __cdecl vtkSmartPointer::operator=(class vtkSmartPointer const &)" (??$?4VvtkUnsignedCharArray###?$vtkSmartPointer#VvtkDataArray####QEAAAEAV0#AEBV?$vtkSmartPointer#VvtkUnsignedCharArray#####Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: class vtkSmartPointerBase & __cdecl vtkSmartPointerBase::operator=(class vtkSmartPointerBase const &)" (??4vtkSmartPointerBase##QEAAAEAV0#AEBV0##Z) référencé dans la fonction "public: class vtkSmartPointer & __cdecl vtkSmartPointer::operator=(class vtkSmartPointer const &)" (??4?$vtkSmartPointer#VvtkPoints####QEAAAEAV0#AEBV0##Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: int __cdecl vtkDataSetAttributes::SetScalars(class vtkDataArray *)" (?SetScalars#vtkDataSetAttributes##QEAAHPEAVvtkDataArray###Z) référencé dans la fonction "private: bool __cdecl pcl::visualization::PCLVisualizer::fromHandlersToScreen(class pcl::visualization::PointCloudGeometryHandler const &,class pcl::visualization::PointCloudColorHandler const &,class std::basic_string,class std::allocator > const &,int,class Eigen::Matrix const &,class Eigen::Quaternion const &)" (??$fromHandlersToScreen#UPointXYZ#pcl###PCLVisualizer#visualization#pcl##AEAA_NAEBV?$PointCloudGeometryHandler#UPointXYZ#pcl###12#AEBV?$PointCloudColorHandler#UPointXYZ#pcl###12#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##HAEBV?$Matrix#M$03$00$0A#$03$00#Eigen##AEBV?$Quaternion#M$0A##8##Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: static class vtkCellArray * __cdecl vtkCellArray::New(void)" (?New#vtkCellArray##SAPEAV1#XZ) référencé dans la fonction "public: static class vtkSmartPointer __cdecl vtkSmartPointer::New(void)" (?New#?$vtkSmartPointer#VvtkCellArray####SA?AV1#XZ) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: static class vtkFloatArray * __cdecl vtkFloatArray::New(void)" (?New#vtkFloatArray##SAPEAV1#XZ) référencé dans la fonction "public: static class vtkSmartPointer __cdecl vtkSmartPointer::New(void)" (?New#?$vtkSmartPointer#VvtkFloatArray####SA?AV1#XZ) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: static class vtkMatrix4x4 * __cdecl vtkMatrix4x4::New(void)" (?New#vtkMatrix4x4##SAPEAV1#XZ) référencé dans la fonction "public: static class vtkSmartPointer __cdecl vtkSmartPointer::New(void)" (?New#?$vtkSmartPointer#VvtkMatrix4x4####SA?AV1#XZ) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: static class vtkPoints * __cdecl vtkPoints::New(void)" (?New#vtkPoints##SAPEAV1#XZ) référencé dans la fonction "public: static class vtkSmartPointer __cdecl vtkSmartPointer::New(void)" (?New#?$vtkSmartPointer#VvtkPoints####SA?AV1#XZ) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: static class vtkUnsignedCharArray * __cdecl vtkUnsignedCharArray::New(void)" (?New#vtkUnsignedCharArray##SAPEAV1#XZ) référencé dans la fonction "public: static class vtkSmartPointer __cdecl vtkSmartPointer::New(void)" (?New#?$vtkSmartPointer#VvtkUnsignedCharArray####SA?AV1#XZ) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: void __cdecl vtkCellArray::SetCells(__int64,class vtkIdTypeArray *)" (?SetCells#vtkCellArray##QEAAX_JPEAVvtkIdTypeArray###Z) référencé dans la fonction "private: void __cdecl pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData(class pcl::visualization::PointCloudGeometryHandler const &,class vtkSmartPointer &,class vtkSmartPointer &)" (??$convertPointCloudToVTKPolyData#UPointXYZ#pcl###PCLVisualizer#visualization#pcl##AEAAXAEBV?$PointCloudGeometryHandler#UPointXYZ#pcl###12#AEAV?$vtkSmartPointer#VvtkPolyData####AEAV?$vtkSmartPointer#VvtkIdTypeArray#####Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: void __cdecl vtkDataArrayTemplate::SetArray(float *,__int64,int,int)" (?SetArray#?$vtkDataArrayTemplate#M##QEAAXPEAM_JHH#Z) référencé dans la fonction "public: void __cdecl vtkDataArrayTemplate::SetArray(float *,__int64,int)" (?SetArray#?$vtkDataArrayTemplate#M##QEAAXPEAM_JH#Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: void __cdecl vtkDataArrayTemplate::SetArray(unsigned char *,__int64,int,int)" (?SetArray#?$vtkDataArrayTemplate#E##QEAAXPEAE_JHH#Z) référencé dans la fonction "public: void __cdecl vtkDataArrayTemplate::SetArray(unsigned char *,__int64,int)" (?SetArray#?$vtkDataArrayTemplate#E##QEAAXPEAE_JH#Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
Error LNK2019: symbole externe non résolu "public: void __cdecl vtkPolyData::SetVerts(class vtkCellArray *)" (?SetVerts#vtkPolyData##QEAAXPEAVvtkCellArray###Z) référencé dans la fonction "private: void __cdecl pcl::visualization::PCLVisualizer::convertPointCloudToVTKPolyData(class pcl::visualization::PointCloudGeometryHandler const &,class vtkSmartPointer &,class vtkSmartPointer &)" (??$convertPointCloudToVTKPolyData#UPointXYZ#pcl###PCLVisualizer#visualization#pcl##AEAAXAEBV?$PointCloudGeometryHandler#UPointXYZ#pcl###12#AEAV?$vtkSmartPointer#VvtkPolyData####AEAV?$vtkSmartPointer#VvtkIdTypeArray#####Z) C:\Users\8310706B\documents\visual studio 2010\Projects\TestPCL\icpmain.obj TestPCL
If you are under windows and during install PCL, you have "PATH Too long" error message,
The libs list are (for debug compiling) :
pcl_visualization_debug.lib pcl_common_debug.lib pcl_apps_debug.lib
pcl_features_debug.lib pcl_filters_debug.lib pcl_io_debug.lib
pcl_io_ply_debug.lib pcl_kdtree_debug.lib pcl_keypoints_debug.lib
pcl_octree_debug.lib pcl_registration_debug.lib
pcl_sample_consensus_debug.lib pcl_search_debug.lib
pcl_segmentation_debug.lib pcl_surface_debug.lib
pcl_tracking_debug.lib vtkHybrid-gd.lib vtkalglib-gd.lib
vtkCharts-gd.lib vtkCommon-gd.lib vtkIO-gd.lib vtksys-gd.lib
vtkViews-gd.lib vtkWidgets-gd.lib vtkVolumeRendering-gd.lib
vtkzlib-gd.lib vtkfreetype-gd.lib MapReduceMPI-gd.lib vtkexoIIc-gd.lib
vtkImaging-gd.lib vtkInfovis-gd.lib vtkjpeg-gd.lib vtklibxml2-gd.lib
vtkpng-gd.lib vtkproj4-gd.lib vtkRendering.lib vtkverdict-gd.lib
vtksqlite-gd.lib mpistubs-gd.lib QVTK-gd.lib vtkDICOMParser-gd.lib
vtkexpat-gd.lib vtkFiltering-gd.lib

QGIS: Error LNK2019 using QApplication

I'm trying to create a project using the QGIS class "QApplication" but it seems to fail due to an error I can´t understand.
I'm using this build version of QGIS made for QT5.7, VS2015, W10 x64 and my main.cpp just containts the following lines:
#define CORE_EXPORT __declspec(dllexport)
#include "QGisTest.h"
#include <QtWidgets/QApplication>
#include <qgsapplication.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QGisTest w;
w.show();
return a.exec();
}
And when I try to build it, these errors show up:
1>------ Build started: Project: QGisTest, Configuration: Release x64 ------
1> moc_qgsapplication.cpp
1> Creating library C:\Users\GRODRIGUEZ\Documents\Visual Studio 2015\Projects\QGisTest\x64\Release\QGisTest.lib and object C:\Users\GRODRIGUEZ\Documents\Visual Studio 2015\Projects\QGisTest\x64\Release\QGisTest.exp
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QMap<class QString,class QString> QgsApplication::mSystemEnvVars21800" (?mSystemEnvVars21800#QgsApplication##0V?$QMap#VQString##V1###A) referenced in function "public: static class QMap<class QString,class QString> __cdecl QgsApplication::systemEnvVars(void)" (?systemEnvVars#QgsApplication##SA?AV?$QMap#VQString##V1###XZ)
1>main.obj : error LNK2001: unresolved external symbol "private: static class QMap<class QString,class QString> QgsApplication::mSystemEnvVars21800" (?mSystemEnvVars21800#QgsApplication##0V?$QMap#VQString##V1###A)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static bool QgsApplication::mRunningFromBuildDir21800" (?mRunningFromBuildDir21800#QgsApplication##0_NA) referenced in function "public: static bool __cdecl QgsApplication::isRunningFromBuildDir(void)" (?isRunningFromBuildDir#QgsApplication##SA_NXZ)
1>main.obj : error LNK2001: unresolved external symbol "private: static bool QgsApplication::mRunningFromBuildDir21800" (?mRunningFromBuildDir21800#QgsApplication##0_NA)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QString QgsApplication::mBuildSourcePath21800" (?mBuildSourcePath21800#QgsApplication##0VQString##A) referenced in function "public: static class QString __cdecl QgsApplication::buildSourcePath(void)" (?buildSourcePath#QgsApplication##SA?AVQString##XZ)
1>main.obj : error LNK2001: unresolved external symbol "private: static class QString QgsApplication::mBuildSourcePath21800" (?mBuildSourcePath21800#QgsApplication##0VQString##A)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QString QgsApplication::mCfgIntDir21800" (?mCfgIntDir21800#QgsApplication##0VQString##A) referenced in function "public: static class QString __cdecl QgsApplication::cfgIntDir(void)" (?cfgIntDir#QgsApplication##SA?AVQString##XZ)
1>main.obj : error LNK2001: unresolved external symbol "private: static class QString QgsApplication::mCfgIntDir21800" (?mCfgIntDir21800#QgsApplication##0VQString##A)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QString QgsApplication::mBuildOutputPath21800" (?mBuildOutputPath21800#QgsApplication##0VQString##A) referenced in function "public: static class QString __cdecl QgsApplication::buildOutputPath(void)" (?buildOutputPath#QgsApplication##SA?AVQString##XZ)
1>main.obj : error LNK2001: unresolved external symbol "private: static class QString QgsApplication::mBuildOutputPath21800" (?mBuildOutputPath21800#QgsApplication##0VQString##A)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QStringList QgsApplication::mGdalSkipList21800" (?mGdalSkipList21800#QgsApplication##0VQStringList##A) referenced in function "public: static class QStringList __cdecl QgsApplication::skippedGdalDrivers(void)" (?skippedGdalDrivers#QgsApplication##SA?AVQStringList##XZ)
1>main.obj : error LNK2001: unresolved external symbol "private: static class QStringList QgsApplication::mGdalSkipList21800" (?mGdalSkipList21800#QgsApplication##0VQStringList##A)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static int QgsApplication::mMaxThreads21800" (?mMaxThreads21800#QgsApplication##0HA) referenced in function "public: static int __cdecl QgsApplication::maxThreads(void)" (?maxThreads#QgsApplication##SAHXZ)
1>main.obj : error LNK2001: unresolved external symbol "private: static int QgsApplication::mMaxThreads21800" (?mMaxThreads21800#QgsApplication##0HA)
1>C:\Users\GRODRIGUEZ\Documents\Visual Studio 2015\Projects\QGisTest\x64\Release\\QGisTest.exe : fatal error LNK1120: 7 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I also added to the project this "moc_qgsapplication.cpp" and wrote the line:
#define CORE_EXPORT __declspec(dllexport)
to avoid other compilation problems and linked to the project the QGIS and QT 5.7 libs.
Any idea how to fix it?
EDIT:
I have changed the two lines of main.cpp as suggested and now contains the following code:
#define CORE_EXPORT __declspec(dllimport)
#include "QGisTest.h"
#include <QApplication>
#include <qgsapplication.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QGisTest w;
w.show();
return a.exec();
}
but when I try to build it, these erros still show up:
1>------ Build started: Project: QGisTest, Configuration: Release x64 ------
1> moc_qgsapplication.cpp
1> main.cpp
1> Generating Code...
1> Creating library C:\Users\GRODRIGUEZ\Documents\Visual Studio 2015\Projects\QGisTest\x64\Release\QGisTest.lib and object C:\Users\GRODRIGUEZ\Documents\Visual Studio 2015\Projects\QGisTest\x64\Release\QGisTest.exp
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QMap<class QString,class QString> QgsApplication::mSystemEnvVars21800" (?mSystemEnvVars21800#QgsApplication##0V?$QMap#VQString##V1###A) referenced in function "public: static class QMap<class QString,class QString> __cdecl QgsApplication::systemEnvVars(void)" (?systemEnvVars#QgsApplication##SA?AV?$QMap#VQString##V1###XZ)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static bool QgsApplication::mRunningFromBuildDir21800" (?mRunningFromBuildDir21800#QgsApplication##0_NA) referenced in function "public: static bool __cdecl QgsApplication::isRunningFromBuildDir(void)" (?isRunningFromBuildDir#QgsApplication##SA_NXZ)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QString QgsApplication::mBuildSourcePath21800" (?mBuildSourcePath21800#QgsApplication##0VQString##A) referenced in function "public: static class QString __cdecl QgsApplication::buildSourcePath(void)" (?buildSourcePath#QgsApplication##SA?AVQString##XZ)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QString QgsApplication::mCfgIntDir21800" (?mCfgIntDir21800#QgsApplication##0VQString##A) referenced in function "public: static class QString __cdecl QgsApplication::cfgIntDir(void)" (?cfgIntDir#QgsApplication##SA?AVQString##XZ)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QString QgsApplication::mBuildOutputPath21800" (?mBuildOutputPath21800#QgsApplication##0VQString##A) referenced in function "public: static class QString __cdecl QgsApplication::buildOutputPath(void)" (?buildOutputPath#QgsApplication##SA?AVQString##XZ)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static class QStringList QgsApplication::mGdalSkipList21800" (?mGdalSkipList21800#QgsApplication##0VQStringList##A) referenced in function "public: static class QStringList __cdecl QgsApplication::skippedGdalDrivers(void)" (?skippedGdalDrivers#QgsApplication##SA?AVQStringList##XZ)
1>moc_qgsapplication.obj : error LNK2019: unresolved external symbol "private: static int QgsApplication::mMaxThreads21800" (?mMaxThreads21800#QgsApplication##0HA) referenced in function "public: static int __cdecl QgsApplication::maxThreads(void)" (?maxThreads#QgsApplication##SAHXZ)
1>C:\Users\GRODRIGUEZ\Documents\Visual Studio 2015\Projects\QGisTest\x64\Release\\QGisTest.exe : fatal error LNK1120: 7 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

VS2010E Qt 5.1 compilation error LNK2001 LNK2019

i'm trying to build a simple Qt window from a photoshop plugin
i put libraries where it belongs
in the Include directory :
E:\Program_Files\Qt32\5.1.0\msvc2010\include;
E:\Program_Files\Qt32\5.1.0\msvc2010\include\QtWidgets\;
in the library directory :
E:\Program_Files\Qt32\5.1.0\msvc2010\lib;
E:\Program_Files\Qt32\5.1.0\msvc2010\lib\cmake\Qt5Core;
in link>general>directory of additional libraries
E:\Program_Files\Qt32\5.1.0\msvc2010\lib\cmake;
E:\Program_Fi
les\Qt32\5.1.0\msvc2010\lib\cmake\Qt5Core;
i alos added in link editor>entry>additional dependency
Qt5Cored.lib;
Qt5Core.lib;
Qt5Gui.lib;
here is what i have : (i use VS2010 Express so i can't use VSadd-in)
i've tried a lot of things without luck
thanks
1> Création de la bibliothèque .\..\..\..\Output\Objs\tempproj\Release/tempproj.lib et de l'objet .\..\..\..\Output\Objs\tempproj\Release/tempproj.exp
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: void __thiscall QAbstractButton::setText(class QString const &)" (__imp_?setText#QAbstractButton##QAEXABVQString###Z) référencé dans la fonction "public: void __thiscall Ui_GradientSelector::retranslateUi(class QMainWindow *)" (?retranslateUi#Ui_GradientSelector##QAEXPAVQMainWindow###Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: void __thiscall QWidget::setWindowTitle(class QString const &)" (__imp_?setWindowTitle#QWidget##QAEXABVQString###Z) référencé dans la fonction "public: void __thiscall Ui_GradientSelector::retranslateUi(class QMainWindow *)" (?retranslateUi#Ui_GradientSelector##QAEXPAVQMainWindow###Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall QMainWindow::~QMainWindow(void)" (__imp_??1QMainWindow##UAE#XZ) référencé dans la fonction "public: virtual __thiscall GradientSelector::~GradientSelector(void)" (??1GradientSelector##UAE#XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual struct QMetaObject const * __thiscall GradientSelector::metaObject(void)const " (?metaObject#GradientSelector##UBEPBUQMetaObject##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void * __thiscall GradientSelector::qt_metacast(char const *)" (?qt_metacast#GradientSelector##UAEPAXPBD#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall GradientSelector::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#GradientSelector##UAEHW4Call#QMetaObject##HPAPAX#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QMainWindow::event(class QEvent *)" (?event#QMainWindow##MAE_NPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void __thiscall QWidget::setVisible(bool)" (?setVisible#QWidget##UAEX_N#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QSize __thiscall QWidget::sizeHint(void)const " (?sizeHint#QWidget##UBE?AVQSize##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QSize __thiscall QWidget::minimumSizeHint(void)const " (?minimumSizeHint#QWidget##UBE?AVQSize##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QWidget::heightForWidth(int)const " (?heightForWidth#QWidget##UBEHH#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual bool __thiscall QWidget::hasHeightForWidth(void)const " (?hasHeightForWidth#QWidget##UBE_NXZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::mousePressEvent(class QMouseEvent *)" (?mousePressEvent#QWidget##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent#QWidget##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::mouseDoubleClickEvent(class QMouseEvent *)" (?mouseDoubleClickEvent#QWidget##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::mouseMoveEvent(class QMouseEvent *)" (?mouseMoveEvent#QWidget##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::wheelEvent(class QWheelEvent *)" (?wheelEvent#QWidget##MAEXPAVQWheelEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::keyPressEvent(class QKeyEvent *)" (?keyPressEvent#QWidget##MAEXPAVQKeyEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::keyReleaseEvent(class QKeyEvent *)" (?keyReleaseEvent#QWidget##MAEXPAVQKeyEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::focusInEvent(class QFocusEvent *)" (?focusInEvent#QWidget##MAEXPAVQFocusEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::focusOutEvent(class QFocusEvent *)" (?focusOutEvent#QWidget##MAEXPAVQFocusEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::enterEvent(class QEvent *)" (?enterEvent#QWidget##MAEXPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::leaveEvent(class QEvent *)" (?leaveEvent#QWidget##MAEXPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::paintEvent(class QPaintEvent *)" (?paintEvent#QWidget##MAEXPAVQPaintEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::moveEvent(class QMoveEvent *)" (?moveEvent#QWidget##MAEXPAVQMoveEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::resizeEvent(class QResizeEvent *)" (?resizeEvent#QWidget##MAEXPAVQResizeEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::closeEvent(class QCloseEvent *)" (?closeEvent#QWidget##MAEXPAVQCloseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMainWindow::contextMenuEvent(class QContextMenuEvent *)" (?contextMenuEvent#QMainWindow##MAEXPAVQContextMenuEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::tabletEvent(class QTabletEvent *)" (?tabletEvent#QWidget##MAEXPAVQTabletEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::actionEvent(class QActionEvent *)" (?actionEvent#QWidget##MAEXPAVQActionEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::dragEnterEvent(class QDragEnterEvent *)" (?dragEnterEvent#QWidget##MAEXPAVQDragEnterEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::dragMoveEvent(class QDragMoveEvent *)" (?dragMoveEvent#QWidget##MAEXPAVQDragMoveEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::dragLeaveEvent(class QDragLeaveEvent *)" (?dragLeaveEvent#QWidget##MAEXPAVQDragLeaveEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::dropEvent(class QDropEvent *)" (?dropEvent#QWidget##MAEXPAVQDropEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::showEvent(class QShowEvent *)" (?showEvent#QWidget##MAEXPAVQShowEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::hideEvent(class QHideEvent *)" (?hideEvent#QWidget##MAEXPAVQHideEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QWidget::nativeEvent(class QByteArray const &,void *,long *)" (?nativeEvent#QWidget##MAE_NABVQByteArray##PAXPAJ#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::changeEvent(class QEvent *)" (?changeEvent#QWidget##MAEXPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::inputMethodEvent(class QInputMethodEvent *)" (?inputMethodEvent#QWidget##MAEXPAVQInputMethodEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QVariant __thiscall QWidget::inputMethodQuery(enum Qt::InputMethodQuery)const " (?inputMethodQuery#QWidget##UBE?AVQVariant##W4InputMethodQuery#Qt###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QWidget::focusNextPrevChild(bool)" (?focusNextPrevChild#QWidget##MAE_N_N#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QMenu * __thiscall QMainWindow::createPopupMenu(void)" (?createPopupMenu#QMainWindow##UAEPAVQMenu##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QWidget::devType(void)const " (?devType#QWidget##UBEHXZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QPaintEngine * __thiscall QWidget::paintEngine(void)const " (?paintEngine#QWidget##UBEPAVQPaintEngine##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual int __thiscall QWidget::metric(enum QPaintDevice::PaintDeviceMetric)const " (?metric#QWidget##MBEHW4PaintDeviceMetric#QPaintDevice###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::initPainter(class QPainter *)const " (?initPainter#QWidget##MBEXPAVQPainter###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual class QPaintDevice * __thiscall QWidget::redirected(class QPoint *)const " (?redirected#QWidget##MBEPAVQPaintDevice##PAVQPoint###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual class QPainter * __thiscall QWidget::sharedPainter(void)const " (?sharedPainter#QWidget##MBEPAVQPainter##XZ)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: void __thiscall QMainWindow::setStatusBar(class QStatusBar *)" (__imp_?setStatusBar#QMainWindow##QAEXPAVQStatusBar###Z) référencé dans la fonction "public: void __thiscall Ui_GradientSelector::setupUi(class QMainWindow *)" (?setupUi#Ui_GradientSelector##QAEXPAVQMainWindow###Z)setupUi#Ui_GradientSelector##QAEXPAVQMainWindow###Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: __thiscall QWidget::QWidget(class QWidget *,class QFlags<enum Qt::WindowType>)" (__imp_??0QWidget##QAE#PAV0#V?$QFlags#W4WindowType#Qt#####Z) référencé dans la fonction "public: void __thiscall Ui_GradientSelector::setupUi(class QMainWindow *)" (?setupUi#Ui_GradientSelector##QAEXPAVQMainWindow###Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: void __thiscall QWidget::resize(class QSize const &)" (__imp_?resize#QWidget##QAEXABVQSize###Z) référencé dans la fonction "public: void __thiscall Ui_GradientSelector::setupUi(class QMainWindow *)" (?setupUi#Ui_GradientSelector##QAEXPAVQMainWindow###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual struct QMetaObject const * __thiscall QWidget::metaObject(void)const " (?metaObject#QWidget##UBEPBUQMetaObject##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void * __thiscall QWidget::qt_metacast(char const *)" (?qt_metacast#QWidget##UAEPAXPBD#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QWidget##UAEHW4Call#QMetaObject##HPAPAX#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QWidget::event(class QEvent *)" (?event#QWidget##MAE_NPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QWidget::contextMenuEvent(class QContextMenuEvent *)" (?contextMenuEvent#QWidget##MAEXPAVQContextMenuEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual struct QMetaObject const * __thiscall QPushButton::metaObject(void)const " (?metaObject#QPushButton##UBEPBUQMetaObject##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void * __thiscall QPushButton::qt_metacast(char const *)" (?qt_metacast#QPushButton##UAEPAXPBD#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QPushButton::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QPushButton##UAEHW4Call#QMetaObject##HPAPAX#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QPushButton::event(class QEvent *)" (?event#QPushButton##MAE_NPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::timerEvent(class QTimerEvent *)" (?timerEvent#QAbstractButton##MAEXPAVQTimerEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QSize __thiscall QPushButton::sizeHint(void)const " (?sizeHint#QPushButton##UBE?AVQSize##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QSize __thiscall QPushButton::minimumSizeHint(void)const " (?minimumSizeHint#QPushButton##UBE?AVQSize##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::mousePressEvent(class QMouseEvent *)" (?mousePressEvent#QAbstractButton##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent#QAbstractButton##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::mouseMoveEvent(class QMouseEvent *)" (?mouseMoveEvent#QAbstractButton##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QPushButton::keyPressEvent(class QKeyEvent *)" (?keyPressEvent#QPushButton##MAEXPAVQKeyEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::keyReleaseEvent(class QKeyEvent *)" (?keyReleaseEvent#QAbstractButton##MAEXPAVQKeyEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QPushButton::focusInEvent(class QFocusEvent *)" (?focusInEvent#QPushButton##MAEXPAVQFocusEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QPushButton::focusOutEvent(class QFocusEvent *)" (?focusOutEvent#QPushButton##MAEXPAVQFocusEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QPushButton::paintEvent(class QPaintEvent *)" (?paintEvent#QPushButton##MAEXPAVQPaintEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::changeEvent(class QEvent *)" (?changeEvent#QAbstractButton##MAEXPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QAbstractButton::hitButton(class QPoint const &)const " (?hitButton#QAbstractButton##MBE_NABVQPoint###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::checkStateSet(void)" (?checkStateSet#QAbstractButton##MAEXXZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QAbstractButton::nextCheckState(void)" (?nextCheckState#QAbstractButton##MAEXXZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual struct QMetaObject const * __thiscall QLineEdit::metaObject(void)const " metaObject#QMenuBar##UBEPBUQMetaObject##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void * __thiscall QMenuBar::qt_metacast(char const *)" (?qt_metacast#QMenuBar##UAEPAXPBD#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QMenuBar::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QMenuBar##UAEHW4Call#QMetaObject##HPAPAX#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QMenuBar::event(class QEvent *)" (?event#QMenuBar##MAE_NPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QMenuBar::eventFilter(class QObject *,class QEvent *)" (?eventFilter#QMenuBar##MAE_NPAVQObject##PAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::timerEvent(class QTimerEvent *)" (?timerEvent#QMenuBar##MAEXPAVQTimerEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void __thiscall QMenuBar::setVisible(bool)" (?setVisible#QMenuBar##UAEX_N#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QSize __thiscall QMenuBar::sizeHint(void)const " (?sizeHint#QMenuBar##UBE?AVQSize##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual class QSize __thiscall QMenuBar::minimumSizeHint(void)const " (?minimumSizeHint#QMenuBar##UBE?AVQSize##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QMenuBar::heightForWidth(int)const " (?heightForWidth#QMenuBar##UBEHH#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::mousePressEvent(class QMouseEvent *)" (?mousePressEvent#QMenuBar##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent#QMenuBar##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::mouseMoveEvent(class QMouseEvent *)" (?mouseMoveEvent#QMenuBar##MAEXPAVQMouseEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::keyPressEvent(class QKeyEvent *)" (?keyPressEvent#QMenuBar##MAEXPAVQKeyEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::focusInEvent(class QFocusEvent *)" (?focusInEvent#QMenuBar##MAEXPAVQFocusEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::focusOutEvent(class QFocusEvent *)" (?focusOutEvent#QMenuBar##MAEXPAVQFocusEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::leaveEvent(class QEvent *)" (?leaveEvent#QMenuBar##MAEXPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::paintEvent(class QPaintEvent *)" (?paintEvent#QMenuBar##MAEXPAVQPaintEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::resizeEvent(class QResizeEvent *)" (?resizeEvent#QMenuBar##MAEXPAVQResizeEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::actionEvent(class QActionEvent *)" (?actionEvent#QMenuBar##MAEXPAVQActionEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QMenuBar::changeEvent(class QEvent *)" (?changeEvent#QMenuBar##MAEXPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual struct QMetaObject const * __thiscall QToolBar::metaObject(void)const " (?metaObject#QToolBar##UBEPBUQMetaObject##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void * __thiscall QToolBar::qt_metacast(char const *)" (?qt_metacast#QToolBar##UAEPAXPBD#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QToolBar::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QToolBar##UAEHW4Call#QMetaObject##HPAPAX#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QToolBar::event(class QEvent *)" (?event#QToolBar##MAE_NPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QToolBar::paintEvent(class QPaintEvent *)" (?paintEvent#QToolBar##MAEXPAVQPaintEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QToolBar::actionEvent(class QActionEvent *)" (?actionEvent#QToolBar##MAEXPAVQActionEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QToolBar::changeEvent(class QEvent *)" (?changeEvent#QToolBar##MAEXPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual struct QMetaObject const * __thiscall QStatusBar::metaObject(void)const " (?metaObject#QStatusBar##UBEPBUQMetaObject##XZ)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual void * __thiscall QStatusBar::qt_metacast(char const *)" (?qt_metacast#QStatusBar##UAEPAXPBD#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "public: virtual int __thiscall QStatusBar::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall#QStatusBar##UAEHW4Call#QMetaObject##HPAPAX#Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual bool __thiscall QStatusBar::event(class QEvent *)" (?event#QStatusBar##MAE_NPAVQEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QStatusBar::paintEvent(class QPaintEvent *)" (?paintEvent#QStatusBar##MAEXPAVQPaintEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QStatusBar::resizeEvent(class QResizeEvent *)" (?resizeEvent#QStatusBar##MAEXPAVQResizeEvent###Z)
1>GradientSelector.obj : error LNK2001: symbole externe non résolu "protected: virtual void __thiscall QStatusBar::showEvent(class QShowEvent *)" (?showEvent#QStatusBar##MAEXPAVQShowEvent###Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall QWidget::~QWidget(void)" (__imp_??1QWidget##UAE#XZ) référencé dans la fonction "public: virtual void * __thiscall QWidget::`scalar deleting destructor'(unsigned int)" (??_GQWidget##UAEPAXI#Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall QPushButton::~QPushButton(void)" (__imp_??1QPushButton##UAE#XZ) référencé dans la fonction "public: virtual void * __thiscall QPushButton::`scalar deleting destructor'(unsigned int)" (??_GQPushButton##UAEPAXI#Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall QLineEdit::~QLineEdit(void)" (__imp_??1QLineEdit##UAE#XZ) référencé dans la fonction "public: virtual void * __thiscall QLineEdit::`scalar deleting destructor'(unsigned int)" (??_GQLineEdit##UAEPAXI#Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall QMenuBar::~QMenuBar(void)" (__imp_??1QMenuBar##UAE#XZ) référencé dans la fonction "public: virtual void * __thiscall QMenuBar::`scalar deleting destructor'(unsigned int)" (??_GQMenuBar##UAEPAXI#Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall QToolBar::~QToolBar(void)" (__imp_??1QToolBar##UAE#XZ) référencé dans la fonction "public: virtual void * __thiscall QToolBar::`scalar deleting destructor'(unsigned int)" (??_GQToolBar##UAEPAXI#Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall QStatusBar::~QStatusBar(void)" (__imp_??1QStatusBar##UAE#XZ) référencé dans la fonction "public: virtual void * __thiscall QStatusBar::`scalar deleting destructor'(unsigned int)" (??_GQStatusBar##UAEPAXI#Z)
1>GradientSelector.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: __thiscall QMainWindow::QMainWindow(class QWidget *,class QFlags<enum Qt::WindowType>)" (__imp_??0QMainWindow##QAE#PAVQWidget##V?$QFlags#W4WindowType#Qt#####Z) référencé dans la fonction "public: __thiscall GradientSelector::GradientSelector(class QWidget *)" (??0GradientSelector##QAE#PAVQWidget###Z)
1>C:\Program Files (x86)\Adobe\Photoshop Elements 3.0\Plug-Ins\Filters\tempproj.8bf : fatal error LNK1120: 148 externes non résolus
Where did you install MSVC2010. If you did not change the MSVC installation path when you installed it then, your MSVC is on C:\Program Files\Microsoft Visual Studio 10.0... You should then include your .header files and .lib files on C:\Program Files\Microsoft Visual Studio 10.0\VC\include... and C:\Program Files\Microsoft Visual Studio 10.0\VC\lib.. This is the path where MSVC compiler will look for the header files and .lib files.