Borland C++ Complier Error Missing cox32.obj
I have the Borland C++ 5.5 complier and linker and have been using them for 3 weeks. I have set up the configure files as shown on your cprogramming web page instructions.
The complier and linker work fine as long as the code is contained in main(). When I generate a call function (that I wrote or copied from your web page) I then get "Unable to open file 'C0X32.OBJ' and the process stops.
I copied two sample 'function call routines' (1 c routine and 1 c++ routine) from your tutorial section. C++ routine is found at -- Cprogramming.com Tutorial: Functions -- When I tried to compile and link them I get the same error message "Unable to open file 'C0X32.OBJ' ".
I looked on the internet and found more than two hundred complaints about the missing COX32.obj file when dealing with Borland C++ complier and linker.
I have searched my computer for the cox32.obj and do not fine such a file.
I have searched the internet for the cox32.obj and have not found a copy of the file.
Does any one know how to solve this problem.
Unable to open file 'C0X32.OBJ'
Found the solution to the "Unable to open file 'C0X32.OBJ' ".
Thanks to vulcan_146's post on 03-06-2004 at 08:25 PM about the Unresolved external '_main' referenced from C:\BORLAND\BCC55\LIB\COX32.OBJ I was able to fix my problem of "Unable to open file 'C0X32.OBJ' ".
The problem in both cases came from the complier switch settings. Although we were dealing with different switch settings when I cleared the -v (source level debugging switch) the problem went away.
Again thanks to vulcan_146 for pointing to the source of the problem.