[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Problem cross compiling TOra

From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] Problem cross compiling TOra
Date: Fri, 02 Oct 2015 22:52:59 +1000

> On 2 Oct 2015, at 22:23, Adam Ward <address@hidden> wrote:
> Getting close :)

Good to hear!

> The build gets over half way, but fails with the following:
> /home/toradev/tora/src/core/utils.cpp: In static member function 'static 
> HINSTANCE__* Utils::toLibrary::loadLibrary(const QFileInfo&)':
> /home/toradev/tora/src/core/utils.cpp:1100:74: warning: passing NULL to 
> non-pointer argument 3 of 'HINSTANCE__* LoadLibraryExA(LPCSTR, HANDLE, 
> DWORD)' [-Wconversion-null]
>         handle = LoadLibraryEx( libpath.toStdString().c_str(), NULL, NULL);
> ^
> /home/toradev/tora/src/core/utils.cpp: In static member function 'static 
> void* Utils::toLibrary::lookupSymbol(HINSTANCE__* const&, const char*)':
> /home/toradev/tora/src/core/utils.cpp:1229:31: error: invalid conversion from 
> 'FARPROC {aka long long int (*)()}' to 'void*' [-fpermissive]
>         return GetProcAddress (handle, symbol);
>                               ^

That’s a result of stricter errors in gcc 5.2 (or almost every release of gcc). 
You “can” get around it by adding `-fpermissive` to CXX_FLAGS, but I’d suggest 
reporting it to the tora list.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]