initial check in
This commit is contained in:
9
test_lib/test_lib_static/method1.cpp
Normal file
9
test_lib/test_lib_static/method1.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include "test_static.h"
|
||||
|
||||
void A::method1()
|
||||
{
|
||||
puts( "A::method1() which calls A::method2()" );
|
||||
method2();
|
||||
}
|
||||
|
||||
13
test_lib/test_lib_static/method2.cpp
Normal file
13
test_lib/test_lib_static/method2.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include "test_static.h"
|
||||
|
||||
void A::method2()
|
||||
{
|
||||
puts( "A::method2()" );
|
||||
}
|
||||
|
||||
void A::method2_1()
|
||||
{
|
||||
puts( "A::method2_1()" );
|
||||
}
|
||||
|
||||
8
test_lib/test_lib_static/method3.cpp
Normal file
8
test_lib/test_lib_static/method3.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include "test_static.h"
|
||||
|
||||
void A::method3()
|
||||
{
|
||||
puts( "A::method3()" );
|
||||
}
|
||||
|
||||
10
test_lib/test_lib_static/obj1.cpp
Normal file
10
test_lib/test_lib_static/obj1.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "test_static.h"
|
||||
|
||||
void func1()
|
||||
{
|
||||
puts( "func1 which calls func2" );
|
||||
func2();
|
||||
}
|
||||
|
||||
13
test_lib/test_lib_static/obj2.cpp
Normal file
13
test_lib/test_lib_static/obj2.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include "test_static.h"
|
||||
|
||||
void func2()
|
||||
{
|
||||
puts( "func2" );
|
||||
}
|
||||
|
||||
void func2_1()
|
||||
{
|
||||
puts( "func2_1" );
|
||||
}
|
||||
|
||||
8
test_lib/test_lib_static/obj3.cpp
Normal file
8
test_lib/test_lib_static/obj3.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include "test_static.h"
|
||||
|
||||
void func3()
|
||||
{
|
||||
puts( "func3" );
|
||||
}
|
||||
|
||||
197
test_lib/test_lib_static/test_lib_static.vcproj
Normal file
197
test_lib/test_lib_static/test_lib_static.vcproj
Normal file
@@ -0,0 +1,197 @@
|
||||
<?xml version="1.0" encoding="windows-1251"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="test_lib_static"
|
||||
ProjectGUID="{FA488743-714C-4D14-9A9F-6BE3205B9E4F}"
|
||||
RootNamespace="test_lib_static"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\method1.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\method2.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\method3.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\obj1.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\obj2.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\obj3.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\test_static.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
25
test_lib/test_lib_static/test_static.h
Normal file
25
test_lib/test_lib_static/test_static.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifdef WIN32
|
||||
# define DYN_EXPORTS
|
||||
# ifdef DYN_EXPORTS
|
||||
# define DYN_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define DYN_EXPORT __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
# define DYN_EXPORT
|
||||
#endif
|
||||
|
||||
extern "C" DYN_EXPORT void func1();
|
||||
extern "C" DYN_EXPORT void func2();
|
||||
extern "C" DYN_EXPORT void func2_1();
|
||||
extern "C" DYN_EXPORT void func3();
|
||||
|
||||
class DYN_EXPORT A
|
||||
{
|
||||
public:
|
||||
|
||||
void method1();
|
||||
void method2();
|
||||
void method2_1();
|
||||
void method3();
|
||||
};
|
||||
Reference in New Issue
Block a user