Didn't Find the Required Zlib Library - c++

I'm using a code written in C++, i have a problem regarding the compilation which is that my project is 64 bit, and I'm using zlib.lib, which will generate the error.
module machine type 'x64' conflicts with target machine type 'x86'
I didn't find GNU 64 bit, but what i need is only the zlib.lib as 64 bit, does it exist?

"target machine type 'x86'" looks as if you need to change a compiler option from x86 target to 64 target...

Related

CMake builds 32-bit library, although my machine runs on 64-bits

I'm trying to build the OpenGL library GLFW3 according to this tutorial. CMake builds a lib in ./src/Debug, but when I try to link it, VS2017 complains:
Error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
I'm aware that changing the VS-compiler from x64 to Win32 solves the issue, but I need to build a 64-bit-version.
So is there any way to tell CMake to build a 64-version?

error in static linking with qt in window 64 bit

I wanted to do static linking of Qt libraries to my project. I've done some tutorial (I downloaded source version of qt and then write a configure line in VS command prompt, I build everything by jom.exe). But apparently it works only with 32 bit versions of project. I want to make it work on 64 bit.
Error is in the line:
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
and it's says:
qwindows.lib(main.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
any ideas how to build it on x64 machine beacause I cannot find any useful information for this problem.
You seem to have a conflict between 32 and 64 bit libraries.
Here's a tutorial on how to build Qt statically for 32 and 64 bit.
You can not link a Win32 library to 64 bit projects,

I'm trying to relearn GCC C or C++ compiling help please

TWO QUESTIONS HERE:
according to this in another post elsewhere --
"had to compile a 32-bit application using GNU gcc on the 64-bit version of Linux.
Luckily, gcc man page directed me to the '-m32' and '-m64' options. These options generate code for 32-bit or 64-bit environments, respectively.
The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system.
The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture."
I have this C program I modified adding features to it that I wanted and needed -- now that I have moved from a 32 bit Linux to a 64 Bit linux this program no longer works with 64 bit Linux.
before I get to ahead of myself --
Question: do I now have to re-compile it as a 64 bit program using m64 to get it to work?
when I recompiling it with the -m32 I get an error as well.
using Xlib.h
/usr/include/X11/Xlib.h:38:23: fatal error: sys/types.h: No such file or directory
I have already googled into this error -- looking at several posts and made sure I have build-essential installed, and it is.
and xlib.h are installed too.
is this looking for "sys/types.h" referencing the X11 or somewhere else?
I have no idea how to fix this problem either.
Question: do I now have to re-compile it as a 64 bit program using m64 to get it to work?
If you already have a 32-bit executable, you should be able to run it on a 64-bit Linux. Provided you have the required 32-bit system libraries installed.
when I recompiling it with the -m32 I get an error as well.
That most likely means you do not have 32-bit development packages installed.

VirtualTreeView - Embarcadero C++ Builder XE7 - 64 bits

I've just downloaded last version of VirtualTreeView.
I've been able to generate the runtime and design packages in 32bits with Embarcadero C++ Builder XE7.
But when trying to build the runtime one in 64 bits I'm getting this error:
[DCC Fatal Error] E2202 Required package 'DesignIDE' not found
I've already checked that the runtime package doesn't require designide.bpi. Any idea of what I'm missing?
I just downloaded the latest version from the VirtualTree from here:
https://virtual-treeview.googlecode.com/svn/trunk.
Since the designtime package doesn't have a 64 bit configuration (Which makes sense because the IDE is a 32 bit app) you must have tried to compile the runtime package. But I can compile the runtime package without a problem.
That's why I would like to ask you if you tried to compile the same version as me?
It seems that you are trying to compile the designtime package. Only the design time package has a dependency on the package "DesignIde". Since the Delphi IDE is 32Bit all design time package can be 32Bit only too and will fail with this error if compiled for 64Bit. Did you perhaps try build the entire project group for 64Bit?

error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
linking problem: fatal error LNK1112: module machine type ‘x64’ conflicts with target machine type ‘X86’
I try to compile a project, let say Project_A, for x64 and receive an LNK1112 error like this
.\x64\Debug\Project_B.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
Project_A depends on Project_B and uses its interfaces etc. My question is what of both projects is here the module machine and what the target machine? I am totally confused, because Project_B.obj in both output dirs are almost same. And compiling only Project_B succeeds. Any ideas?
It seems you are compiling your project for x64 and your project does use a library which target machine is x86. If you want your project compile for x64 machines, try reconfigure the library for x64 instead of x64. Otherwise, compile your project for x86.