User forums > General (but related to Code::Blocks)

How to compile DLL in PE32?

(1/2) > >>

deepdish:
Hello, Im a newbie in c++ and codeblocks, I managed to compile a dll but when I try to attach it to the application I get this error: "A PE32 can not import functions from PE64 and viceversa "... please help.

Miguel Gimenez:
The message is clear, you have compiled the application and the dll using different number of bits. You must recompile one of them to match the other.

EDIT: regarding PE32, it depends on your compiler; use the same flags used for the application.

deepdish:
 I need specific instruction to compile this dll in 32 bits, not a broad answer.

Commaster:
Looks like the compiler you are using for your library either does not support 32 bit mode or is missing all those 32 bit libraries your library wants...

Miguel Gimenez:

--- Quote ---I need specific instruction to compile this dll in 32 bits, not a broad answer.
--- End quote ---

Then, why you did not specify your compiler or OS?. Broad questions receive broad answers...

Navigation

[0] Message Index

[#] Next page

Go to full version