ilink32 error-Unresolved external '_printf' referenced

i have download a source code file and occur error when compile, how to amend it


C:\Borland\BCC55\Bin>ilink32 /Tpd Sample.obj
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_printf' referenced from C:\BORLAND\BCC55\BIN\SAMPLE
.OBJ
Error: Unresolved external '_strcmp' referenced from C:\BORLAND\BCC55\BIN\SAMPLE
.OBJ
Error: Unresolved external '_qsort' referenced from C:\BORLAND\BCC55\BIN\SAMPLE.
OBJ
Error: Unresolved external '_strlen' referenced from C:\BORLAND\BCC55\BIN\SAMPLE
.OBJ
Error: Unresolved external '_strcat' referenced from C:\BORLAND\BCC55\BIN\SAMPLE
.OBJ
Error: Unresolved external '__turboFloat' referenced from root

C:\Borland\BCC55\Bin>

http://113.253.41.218:8080/BCC55/

it's the entire file of my bcc55, the file that i want to compile is in bcc55/Bin/sample.cpp

i must compile it to .dll

as it is called by another exe file, don't need to have it's main() -->what should i type in DOS cmd for compile it to dll

do my bcc32.cfg, ilink32.cfg wrong

i have compile it 100 times , but got the error
thanks
Last edited on
you should create a dll project in VC++ or whatever IDE you are using instead of a console project.
that will solve the problem. console application expects a main but dll doesnt.

that means i cannot use bcc55 to build a dll file?
The linker can't find the C runtime library.

Yes you can use Borland C++ to create a DLL.
LOL. Is that 5.5? You shouldn't even be using something that old.
i haven't money to buy Borland C builder 6 or above~ ~

but i just use it to write a small program, it's fussy and luxury to use bcb 6 or above to do it
Last edited on
for these problems there exist torrents... :P
download vc++ 6.0 or bcc torrent.
vc++ 6.0
Be quiet, you fool.

There are freeware versions of Visual Studio and Borland's compiler, and MinGW has always been free of charge. There's no need to jump straight to torrenting.
Last edited on
i am now using free version of borland cc~ ~
do bcc6 or above use dos command to compile?
i don't want to spend so much time on solving techniqal problems, but concentrate on learning C++ concept

dev c is open source, do it means that it easy for cracker to write a decompiler?
i don't want my program be decompile~ ~
thanks
Last edited on
dev c is open source, do it means that it easy for cracker to write a decompiler?
Dev-C++ is an IDE. It only passes command line arguments to the compiler (MinGW) and has no effect on the compilation process.

i don't want my program will be decompile~ ~
Native code decompilers are mostly abandoned by now. It was realized long ago it was pretty much a waste of effort.
However, nothing can stop a sufficiently motivated reverse engineer. There's no way I can possibly emphasize strongly enough the "nothing". There's simply no way to produce native code that can be read by a computer but not by humans.
As I recall, BCC5.5 was a perfectly acceptable compier for it's time, and with Turbo Debugger, you had an interactive debugger, again the reference of its time. The compiler in Visual Studio 6.0 wasn't more advanced.

Of course, these days there are many good and free compilers out there. If you're struggling with one compiler, it may be easier to switch to an easier one. For Wndows, Visual Studio is the reference environment. But the later versions include complexities that are unncecessary from a C++ perspective. GCC is ubiqutous, and is available under Windows thru cygwin, and native everywhere else.
helios:

:o
great.. companies should take your advice and start using freewares for their performance and features rather than paid versions.. i am impressed.
Topic archived. No new replies allowed.