Skip to content
Snippets Groups Projects
Commit 61c3d48b authored by Tim Übelhör's avatar Tim Übelhör
Browse files

Few fixes for DLL export

parent 22af9538
No related branches found
No related tags found
No related merge requests found
...@@ -54,5 +54,6 @@ public: ...@@ -54,5 +54,6 @@ public:
/// Returns fmi2Status /// Returns fmi2Status
virtual int setValues(ValuesStruct values) = 0; virtual int setValues(ValuesStruct values) = 0;
}; };
// Factory signature
extern "C" __declspec(dllexport) IRpcFrontend* createRpcFrontend(); // Export a function of this type
\ No newline at end of file typedef IRpcFrontend* (*createRpcFrontendType)();
\ No newline at end of file
...@@ -71,15 +71,21 @@ ...@@ -71,15 +71,21 @@
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental> <LinkIncremental>true</LinkIncremental>
<OutDir>$(Platform)\$(Configuration)\</OutDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental> <LinkIncremental>true</LinkIncremental>
<OutDir>$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental> <LinkIncremental>false</LinkIncremental>
<OutDir>$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental> <LinkIncremental>false</LinkIncremental>
<OutDir>$(Platform)\$(Configuration)\</OutDir>
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile> <ClCompile>
......
...@@ -33,8 +33,7 @@ private: ...@@ -33,8 +33,7 @@ private:
}; };
/// Factory method that returns an implementation of IRpcFrontend. /// Factory method that returns an implementation of IRpcFrontend.
IRpcFrontend* createRpcFrontend() extern "C" __declspec(dllexport) IRpcFrontend* createRpcFrontend()
{ {
return new RpcFrontend(); return new RpcFrontend();
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment