Adding a few missing files

This commit is contained in:
2012-12-06 22:10:39 +04:00
parent 1d17896f32
commit 13ed6ff8c3
8 changed files with 48 additions and 204 deletions

1
.gitignore vendored
View File

@@ -15,4 +15,5 @@
*.vcxproj.user *.vcxproj.user
Debug Debug
Release Release
ipch

View File

@@ -1,204 +0,0 @@
//-----------------------------------------------------------------------------
// OpenMP runtime support library for Visual C++
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
// OpenMP C/C++ Version 2.0 March 2002
#pragma once
#if defined(__cplusplus)
extern "C" {
#endif
#define _OMPAPI __cdecl
#if !defined(_OMP_LOCK_T)
#define _OMP_LOCK_T
typedef void * omp_lock_t;
#endif
#if !defined(_OMP_NEST_LOCK_T)
#define _OMP_NEST_LOCK_T
typedef void * omp_nest_lock_t;
#endif
#if !defined(_OPENMP)
#if defined(_DEBUG)
#pragma comment(lib, "vcompd")
#else // _DEBUG
#pragma comment(lib, "vcomp")
#endif // _DEBUG
#endif // _OPENMP
#if !defined(_OPENMP_NOFORCE_MANIFEST)
#include <crtassem.h>
#if defined(_DEBUG)
#if defined(_M_IX86)
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".DebugOpenMP' " \
"version='" _CRT_ASSEMBLY_VERSION "' " \
"processorArchitecture='x86' " \
"publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
#elif defined(_M_AMD64)
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".DebugOpenMP' " \
"version='" _CRT_ASSEMBLY_VERSION "' " \
"processorArchitecture='amd64' " \
"publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
#elif defined(_M_IA64)
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".DebugOpenMP' " \
"version='" _CRT_ASSEMBLY_VERSION "' " \
"processorArchitecture='ia64' " \
"publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
#endif
#else // _DEBUG
#if defined(_M_IX86)
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".OpenMP' " \
"version='" _CRT_ASSEMBLY_VERSION "' " \
"processorArchitecture='x86' " \
"publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
#elif defined(_M_AMD64)
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".OpenMP' " \
"version='" _CRT_ASSEMBLY_VERSION "' " \
"processorArchitecture='amd64' " \
"publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
#elif defined(_M_IA64)
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
"name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".OpenMP' " \
"version='" _CRT_ASSEMBLY_VERSION "' " \
"processorArchitecture='ia64' " \
"publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")
#endif
#endif // _DEBUG
#endif // _OPENMP_NOFORCE_MANIFEST
#if !defined(_OMPIMP)
#define _OMPIMP __declspec(dllimport)
#endif
_OMPIMP void _OMPAPI
omp_set_num_threads(
int _Num_threads
);
_OMPIMP int _OMPAPI
omp_get_num_threads(
void
);
_OMPIMP int _OMPAPI
omp_get_max_threads(
void
);
_OMPIMP int _OMPAPI
omp_get_thread_num(
void
);
_OMPIMP int _OMPAPI
omp_get_num_procs(
void
);
_OMPIMP void _OMPAPI
omp_set_dynamic(
int _Dynamic_threads
);
_OMPIMP int _OMPAPI
omp_get_dynamic(
void
);
_OMPIMP int _OMPAPI
omp_in_parallel(
void
);
_OMPIMP void _OMPAPI
omp_set_nested(
int _Nested
);
_OMPIMP int _OMPAPI
omp_get_nested(
void
);
_OMPIMP void _OMPAPI
omp_init_lock(
omp_lock_t * _Lock
);
_OMPIMP void _OMPAPI
omp_destroy_lock(
omp_lock_t * _Lock
);
_OMPIMP void _OMPAPI
omp_set_lock(
omp_lock_t * _Lock
);
_OMPIMP void _OMPAPI
omp_unset_lock(
omp_lock_t * _Lock
);
_OMPIMP int _OMPAPI
omp_test_lock(
omp_lock_t * _Lock
);
_OMPIMP void _OMPAPI
omp_init_nest_lock(
omp_nest_lock_t * _Lock
);
_OMPIMP void _OMPAPI
omp_destroy_nest_lock(
omp_nest_lock_t * _Lock
);
_OMPIMP void _OMPAPI
omp_set_nest_lock(
omp_nest_lock_t * _Lock
);
_OMPIMP void _OMPAPI
omp_unset_nest_lock(
omp_nest_lock_t * _Lock
);
_OMPIMP int _OMPAPI
omp_test_nest_lock(
omp_nest_lock_t * _Lock
);
_OMPIMP double _OMPAPI
omp_get_wtime(
void
);
_OMPIMP double _OMPAPI
omp_get_wtick(
void
);
#if defined(__cplusplus)
}
#endif

View File

@@ -0,0 +1,7 @@
rm -f a.out
time g++ external_guard.cpp
rm -f a.out
time g++ external_guard.cpp -D_EXT__H_
rm -f a.out
time g++ external_guard.cpp
rm -f a.out

7
std_vs_qt.sh Normal file
View File

@@ -0,0 +1,7 @@
#g++ -g -L../fw/2007.12/3rd_party/qt/4.2.3/`synvariant`/lib -I../fw/2007.12/3rd_party/qt/4.2.3/`synvariant`/include -lQtCore std_vs_qt.cpp -o std_vs_qt.exe.`synvariant`
g++ -O2 -L../fw/2007.12/3rd_party/qt/4.2.3/`synvariant`/lib -I../fw/2007.12/3rd_party/qt/4.2.3/`synvariant`/include -lQtCore std_vs_qt.cpp -o std_vs_qt.exe.`synvariant`
#CC -L../fw/2007.12/3rd_party/qt/4.2.3/`synvariant`/lib -I../fw/2007.12/3rd_party/qt/4.2.3/`synvariant`/include -lQtCore std_vs_qt.cpp -o std_vs_qt.exe.`synvariant`
export LD_LIBRARY_PATH=../fw/2007.12/3rd_party/qt/4.2.3/`synvariant`/lib/
#gdb ./std_vs_qt.exe.`synvariant`
./std_vs_qt.exe.`synvariant`

View File

@@ -1,3 +1,8 @@
//
// To compile use:
// g++ -L/usr/X11R6/lib64 -pthread -lX11 testX11.cpp
//
/* first include the standard headers that we're likely to need */ /* first include the standard headers that we're likely to need */
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xutil.h> #include <X11/Xutil.h>

View File

@@ -0,0 +1,11 @@
OBJFILES=test_lib_dyn.o
all : $(OBJFILES)
$(CC) -shared -o libtest_lib_dyn.so $(OBJFILES) -L../test_lib_static -ltest_lib_static
.cpp.o:
$(CXX) -fPIC -c -o $@ $<
clean:
rm -f $(OBJFILES)

View File

@@ -0,0 +1,5 @@
LIBRARY "test_lib_dyn"
EXPORTS
DllMain
func1 @1 NONAME

View File

@@ -0,0 +1,12 @@
OBJFILES=method1.o method2.o method3.o obj1.o obj2.o obj3.o
CXXFLAGS=-I .
all : $(OBJFILES)
$(AR) cr libtest_lib_static.a $(OBJFILES)
.cpp.o:
$(CXX) -fPIC -c -o $@ $<
clean:
rm -f $(OBJFILES)