[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: Adam Ward
Subject: Re: [Mingw-cross-env-list] Problem cross compiling TOra
Date: Fri, 2 Oct 2015 23:18:18 +0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 02/10/15 20:52, Tony Theodore wrote:
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)' 
         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.



Done, with some further investigation:

reply via email to

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