Menu

#140 error Only Win32 target is supported!

None
fixed
None
2014-11-13
2014-11-04
No

On Windows 7 64-bit Professional and Orwell Dev-C++ 5.8.1, when I try to compile a simple C++ example of IBPP and Firebird both on TDM-GCC 4.8.1 64-bit release and TDM-GCC 4.8.1 32-bit release, I've got the message "error Only Win32 target is supported!" (c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\include_mingw_stdarg.h).

References:
http://firebirdsql.org/
http://www.ibpp.org/
http://sourceforge.net/p/ibpp/mailman/ibpp-discuss/?viewmonth=201404
http://www.firebirdfaq.org/Firebird-Embedded-Linux-HOWTO.html
http://www.firebirdfaq.org/faq9/

Extra information on the error:

140 0 c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\include\stdarg.h In file included from c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\include\stdarg.h
1 c:\program files (x86)\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.8.1\include\stdarg.h from c:\program files (x86)\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.8.1\include\stdarg.h
66 c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\include\windows.h from c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\include\windows.h
59 C:\fb25\teste01\ibpp_ibpp.h from ibpp_ibpp.h
34 C:\fb25\teste01\ibpp_ibpp.cpp from ibpp_ibpp.cpp
35 C:\fb25\teste01\ibpp\all_in_one.cpp from ibpp\all_in_one.cpp
8 C:\fb25\teste01\main.cpp from main.cpp
11 2 c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\include_mingw_stdarg.h [Error] #error Only Win32 target is supported!
40 0 C:\fb25\teste01\ibpp\date.cpp In file included from ibpp\date.cpp
45 C:\fb25\teste01\ibpp\all_in_one.cpp from ibpp\all_in_one.cpp
8 C:\fb25\teste01\main.cpp from main.cpp
12 2 c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\include\time.h [Error] #error Only Win32 target is supported!
28 C:\fb25\teste01\Makefile.win recipe for target 'main.o' failed


My ibpp folder contains "core" folder of ibpp-2-5-3-1-src.zip

See my file main.cpp:

/ run this program using the console pauser or add your own getch, system("pause") or input loop /

include

include

define IBPP_WINDOWS

include "ibpp\all_in_one.cpp"

using namespace std;

int main(int argc, char** argv)
{
IBPP::Database db;
string name = "\fb25\teste01\teste01.fdb";
string host = "127.0.0.1/3050";
db = IBPP::DatabaseFactory(host, name, "sysdba", "masterkey");
// ISO8859_1
try
{
db->Connect();
}
catch (IBPP::Exception &e)
{
cout << e.ErrorMessage() << endl;
}
return 0;
}


How can I solve this error?

Discussion

  • Roberto Carlos

    Roberto Carlos - 2014-11-05

    We may be setting something wrong on Orwell-Dev-C++ or it may be setting something wrong for TDM-GCC.
    Even using Orwell-Dev-C++ on a clean (just installed) Windows 7 64 bit pro, we can not compile a console example with IPBB for Firebird that already works on Linux.
    For while, we are now giving up and trying other open sources IDEs to search for a solution.
    Thanks.

     
  • orwelldevcpp

    orwelldevcpp - 2014-11-13
    • status: open --> fixed
    • assigned_to: orwelldevcpp
    • Milestone: -->
     
  • orwelldevcpp

    orwelldevcpp - 2014-11-13

    This is defined behaviour. The provided compilers only target Win32 or Win64 builds.

    Apologies for the inconvenience caused.

     

Log in to post a comment.