User forums > Help

BCC32 support broke?

<< < (3/4) > >>

duncanka:

--- Quote from: rickg22 on August 18, 2005, 02:00:16 am ---It seems those are Microsoft dependencies. Try adding kernel32 and user32 to the libraries.

--- End quote ---

Worked like a charm. Thanks!

rozniy:

--- Quote from: duncanka on August 18, 2005, 06:14:55 am ---
--- Quote from: rickg22 on August 18, 2005, 02:00:16 am ---It seems those are Microsoft dependencies. Try adding kernel32 and user32 to the libraries.

--- End quote ---

Worked like a charm. Thanks!

--- End quote ---

I have exactly the same problem, but don't understand the instructions here. Do you mean copy kernel32.dll and user32.dll into the Borland lib directory, or into the CodeBlocks lib directory, or do you mean something else entirely?

Please help us Obi-wan, you're our only hope.

I also tried a wxWidgets project using Borland as the CodeBlocks' compiler, but it stopped, saying something about -pipe being an illegal option. No Makefile was created, so I can't modify it.

Edited:
I'm not sure what I just did, but my "Hello sailormoon" program compiles and runs now... I'm terribly confused.


Edited again:
Put d:\borland\bcc55\lib\import32.lib into the"Link Library" of the Project's Build Options. That did the job!


I'll go and fiddle around a little more...

Edited yet again:
... add the cw32.lib AND the import32.lib.

rickg22:
It means adding them to your project's "Linker libraries". In main menu -> project -> build options.

ansswd:
Project   : Console application
Compiler  : Borland C++ Compiler 5.5 (called directly)
Directory : D:\WORK\C\
--------------------------------------------------------------------------------
Switching to target: default
ilink32.exe -ap       -L"C:\PROG\Borland\BCC55\Lib" -L"C:\PROG\Borland\BCC55\Lib\PSDK"  -L"C:\PROG\Borland\BCC55\Lib" -L"C:\PROG\Borland\BCC55\Lib\PSDK" -L"C:\WINDOWS\system32" c0x32 .objs\HelloWorldFromCodeBlocks.o ,"D:\WORK\C\CodeBlockProjHelloWorld.exe",,  "C:\WINDOWS\system32\kernel32.dll" "C:\WINDOWS\system32\user32.dll" ,,
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Error processing module C:\WINDOWS\SYSTEM32\KERNEL32.DLL
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 

sbs.pub:
I faced the same issue and adding only the cw32 and import32 libs resolved it. Trying to add user32 and kernel32 resulted in error as seen in previous post. Guess they are not needed.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version