Displaying 12 results from an estimated 12 matches for "flac_api_exports".
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
...---------
diff --git a/include/FLAC/export.h b/include/FLAC/export.h
index 2232b41..4b2418f 100644
--- a/include/FLAC/export.h
+++ b/include/FLAC/export.h
@@ -59,11 +59,11 @@
#if defined(FLAC__NO_DLL)
#define FLAC_API
-#elif defined(_MSC_VER)
+#elif defined(_WIN32) /*defined(_MSC_VER)*/
#ifdef FLAC_API_EXPORTS
-#define FLAC_API _declspec(dllexport)
+#define FLAC_API __declspec(dllexport)
#else
-#define FLAC_API _declspec(dllimport)
+#define FLAC_API __declspec(dllimport)
#endif
#elif defined(FLAC__USE_VISIBILITY_ATTR)
diff --git a/include/FLAC++/export.h b/include/FLAC++/export.h
index 11c09e6..ab9b...
2017 Jan 23
1
os/2 support using Watcom
..._cdecl macro.
If going this route then perhaps,
diff --git a/include/FLAC/export.h b/include/FLAC/export.h
index d52f0bb..5d40421 100644
--- a/include/FLAC/export.h
+++ b/include/FLAC/export.h
@@ -66,6 +66,13 @@
#define FLAC_API __declspec(dllimport)
#endif
+#elif defined(__OS2__)
+#if defined(FLAC_API_EXPORTS) && defined(__WATCOMC__) && defined(__SW_BD)
+#define FLAC_API __declspec(__cdecl) __declspec(dllexport)
+#else
+#define FLAC_API __declspec(dllexport)
+#endif
+
#elif defined(FLAC__USE_VISIBILITY_ATTR)
#define FLAC_API __attribute__ ((visibility ("default")))
Another o...
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
...__VENDOR_STRING = "reference libFLAC " VERSION "
> 20130526";
> ^
> format.c:49:22: warning: 'FLAC__VENDOR_STRING' redeclared without dllimport
> attribute: previous dllimport ignored [-Wattributes]
>
> ...
> ...
>
>
> FLAC_API_EXPORTS macro is defined in libFLAC_dynamic.vcproj,
> FLACPP_API_EXPORTS macro is defined in libFLAC++_dynamic.vcproj,
> but MinGW/GCC makefiles don't define them anywhere.
My apologies, obviously sent an old testing patch. Correct one is
attached (declspec2.diff). Compilation tested using MinGW...
2017 Jan 22
0
os/2 support using Watcom
...e/FLAC/export.h b/include/FLAC/export.h
index d52f0bb..27b70af 100644
--- a/include/FLAC/export.h
+++ b/include/FLAC/export.h
@@ -57,7 +57,11 @@
*/
#if defined(FLAC__NO_DLL)
+#ifndef __OS2__
#define FLAC_API
+#else
+#define FLAC_API __declspec(__cdecl)
+#endif
#elif defined(_MSC_VER)
#ifdef FLAC_API_EXPORTS
@@ -66,6 +70,13 @@
#define FLAC_API __declspec(dllimport)
#endif
+#elif defined(__OS2__)
+#if defined(FLAC_API_EXPORTS) && defined(__WATCOMC__) && defined(__SW_BD)
+#define FLAC_API __declspec(__cdecl) __declspec(dllexport)
+#else
+#define FLAC_API __declspec(__cdecl)
+#endif
+...
2012 Mar 25
2
Trying to link against libFLAC_static.lib (windows)
...need to look into the headers, check where those problem
> functions are defined. Finally, you'll need to trace back any macros
> that might be potentially using __declspec(dllimport).
Just to be sure, I went to export.h and exlicitly defined FLAC_API and
commented out the lines
#ifdef FLAC_API_EXPORTS
#define FLAC_API _declspec(dllexport)
#else
#define FLAC_API _declspec(dllimport)
I've so cleaned and rebuilt all my project files but still get the errors:
11>AudioDecoder.lib(CFlacDecoder.obj) : error LNK2019: unresolved
external symbol
__imp__FLAC__stream_decoder_process_until_end_of_me...
2012 Dec 03
0
[PATCH 3/5] Hide symbols with gcc.
...ude/FLAC/export.h b/include/FLAC/export.h
index d239b9b..312746d 100644
--- a/include/FLAC/export.h
+++ b/include/FLAC/export.h
@@ -55,17 +55,22 @@
* \{
*/
-#if defined(FLAC__NO_DLL) || !defined(_MSC_VER)
+#if defined(FLAC__NO_DLL)
#define FLAC_API
-#else
-
+#elif defined(_MSC_VER)
#ifdef FLAC_API_EXPORTS
#define FLAC_API _declspec(dllexport)
#else
#define FLAC_API _declspec(dllimport)
-
#endif
+
+#elif defined(FLAC__USE_VISIBILITY_ATTR)
+#define FLAC_API __attribute__ ((visibility ("default")))
+
+#else
+#define FLAC_API
+
#endif
/** These #defines will mirror the libtool-based li...
2017 Jan 23
4
os/2 support using Watcom
On 01/22/17 02:00 PM, Ozkan Sezer wrote:
> Question: Does emx support __declspec(dllexport) so I can adjust
> these changes? Because the emx build of the dll seems to have
> exported_everything_ :(
GCC supports __declspec(dllexport) though it still needs a def file,
with no exports. Libtool doesn't currently and as flac uses libtool...
Dave
2017 Jan 22
7
os/2 support using Watcom
The attached set of patches adds support for OS/2 using Watcom compiler
(tested with Open Watcom 1.9). My only interest was building a working
dll (the last patch in the set adds a makefile for it), therefore I did
not touch other places: If there is interest, I can do so.
Regards.
--
O.S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2012 Mar 26
0
Trying to link against libFLAC_static.lib (windows)
...heck where those problem
>> functions are defined. Finally, you'll need to trace back any macros
>> that might be potentially using __declspec(dllimport).
>
> Just to be sure, I went to export.h and exlicitly defined FLAC_API and
> commented out the lines
>
> #ifdef FLAC_API_EXPORTS
> #define FLAC_API _declspec(dllexport)
> #else
> #define FLAC_API _declspec(dllimport)
>
> I've so cleaned and rebuilt all my project files but still get the errors:
>
> 11>AudioDecoder.lib(CFlacDecoder.obj) : error LNK2019: unresolved
> external symbol
> __imp_...
2014 May 04
0
Building FLAC with LTO
...--- flac-1.3.0/include/FLAC/export.h.orig 2013-05-26 09:30:33.924201900 +0000
+++ flac-1.3.0/include/FLAC/export.h 2014-05-03 09:11:50.799298400 +0000
@@ -59,11 +59,19 @@
#if defined(FLAC__NO_DLL)
#define FLAC_API
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) || defined(__MINGW32__)
#ifdef FLAC_API_EXPORTS
-#define FLAC_API _declspec(dllexport)
+#if defined(__GNUC__)
+#define FLAC_API __attribute__((dllexport))
+#else
+#define FLAC_API __declspec(dllexport)
+#endif
#else
-#define FLAC_API _declspec(dllimport)
+#if defined(__GNUC__)
+#define FLAC_API
+#else
+#define FLAC_API __declspec(dllimport)
+#e...
2012 Dec 03
4
[PATCH 1/5] Remove old GNU-stack sections from nasm files.
They are not needed since the section is defined in nasm.h.
---
src/libFLAC/ia32/bitreader_asm.nasm | 4 ----
src/libFLAC/ia32/cpu_asm.nasm | 4 ----
src/libFLAC/ia32/fixed_asm.nasm | 4 ----
src/libFLAC/ia32/lpc_asm.nasm | 4 ----
src/libFLAC/ia32/stream_encoder_asm.nasm | 4 ----
5 files changed, 20 deletions(-)
diff --git
2012 Mar 23
2
Trying to link against libFLAC_static.lib (windows)
Hi. I'm trying to get a project linking to libFLAC_static.lib but I
get linker errors such as the following.
6>AudioDecoder.lib(CFlacDecoder.obj) : error LNK2019: unresolved
external symbol
__imp__FLAC__stream_decoder_process_until_end_of_metadata referenced
in function "protected: int __thiscall
CFlacDecoder::CreateDecoder(void)"
(?CreateDecoder at CFlacDecoder@@IAEHXZ)