I've rechecked and I missed a full rebuild most
probably. Sorry for the false alarm :(
Brgds,
Viktor
On 2009 Dec 11, at 15:00, Przemysław Czerpak wrote:
> On Fri, 11 Dec 2009, Szak�ts Viktor wrote:
>
> Hi,
>
>> In MSVC C mode (default in hbmk2), I'm getting these warnings:
>> ---
>> cl.exe -I. -I../../../../../include -nologo -Gs -TC -W4 -wd4127 -Ot2b1
>> -EHs-c- -DHB_HAS_PCRE -IF:/work/harbour/harbour/external/pcre -DPCRE_STATIC
>> -DHB_HAS_Z
>> LIB -IF:/work/harbour/harbour/external/zlib -DUNICODE -Foadir_dyn.obj
>> -DHB_DYNLIB -c adir.c
>> adir.c
>> adir.c(42) : warning C4079: unexpected token 'identifier'
>> adir.c(42) : warning C4081: expected 'newline'; found ')'
>> ---
>
> It's hard for me to help without MSVC access.
> Is it sth new or has it been existing for quite long time?
>
> This warning is generated for this code code:
> HB_FUNC( ADIR )
> {
> [...]
> translated by PP to:
> _declspec( dllexport ) void HB_FUN_ADIR ( void )
> {
> [...]
>
> Maybe MSVC does not like _declspec and __declspec should be used instead?
> Try to change in hbdefs.h[1534]:
> #elif defined( __WATCOMC__ )
> #define HB_EXPORT __declspec( dllexport )
> to:
> #elif defined( __WATCOMC__ ) || defined( _MSC_VER )
> #define HB_EXPORT __declspec( dllexport )
> and check if it helps.
>
> best regards,
> Przemek
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour