Overview
Features
Download
Documentation
Community
Add-Ons & Services

MinGW--invalid conversion from`volatile LONG*' to `long int*

A general discussion forum.

MinGW--invalid conversion from`volatile LONG*' to `long int*

Postby sankar » 11 Mar 2010, 20:49

Hi
i have successfully compiled the poco lib with OpenSSl support in minGW and installed the poco lib in c:\poco for this i have used the --prefix command in msys.
i cant compile a simple httpget example in codeblocks but the example have been successfully compiles and links in the example folder in poco lib . i am getting the below errors .....

C:\poco\include\Poco\AtomicCounter.h||In member function `int Poco::AtomicCounter::operator++()':|
C:\poco\include\Poco\AtomicCounter.h|158|error: invalid conversion from `volatile LONG*' to `long int*'|
C:\poco\include\Poco\AtomicCounter.h|158|error: initializing argument 1 of `LONG InterlockedIncrement(long int*)'|
C:\poco\include\Poco\AtomicCounter.h||In member function `int Poco::AtomicCounter::operator++(int)':|
C:\poco\include\Poco\AtomicCounter.h|165|error: invalid conversion from `volatile LONG*' to `long int*'|
C:\poco\include\Poco\AtomicCounter.h|165|error: initializing argument 1 of `LONG InterlockedIncrement(long int*)'|
C:\poco\include\Poco\AtomicCounter.h||In member function `int Poco::AtomicCounter::operator--()':|
C:\poco\include\Poco\AtomicCounter.h|172|error: invalid conversion from `volatile LONG*' to `long int*'|
C:\poco\include\Poco\AtomicCounter.h|172|error: initializing argument 1 of `LONG InterlockedDecrement(long int*)'|
C:\poco\include\Poco\AtomicCounter.h||In member function `int Poco::AtomicCounter::operator--(int)':|
C:\poco\include\Poco\AtomicCounter.h|179|error: invalid conversion from `volatile LONG*' to `long int*'|
C:\poco\include\Poco\AtomicCounter.h|179|error: initializing argument 1 of `LONG InterlockedDecrement(long int*)'|
||=== Build finished: 8 errors, 2 warnings ===|

i am using latest MinGW 4.4.0 . can anybody tell me what wrong why it will not compile in codeblocks but it complies in example folder in NET/samples/httpget ( The program is httpget which is in the above path). i have also added the following defines in the codeblocks hoping that it will work out but it did not.

-mno-cygwin -D_WIN32 -DMINGW32 -DWINVER=0x500 -DPOCO_NO_FPENVIRONMENT -DPCRE_STATIC

please provide any help in this matter . I will be very great full to you all.

with regards..........
sankar
 
Posts: 2
Joined: 07 Jan 2010, 22:27

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron