Re: [Freedos-user] Help linking to Borland Turbo C project to external object file ?
We are learning alot! :-) Simon - Original Message From: Arkady V.Belousov <[EMAIL PROTECTED]> To: freedos-user@lists.sourceforge.net Sent: Saturday, 22 March, 2008 6:23:47 AM Subject: Re: [Freedos-user] Help linking to Borland Turbo C project to external object file ? Hi! 21-Мар-2008 22:26 [EMAIL PROTECTED] (Simon Townsend) wrote to freedos-user@lists.sourceforge.net: ST> Thankyou!, we eventually created a .lib file from the object file we had ST> using TCLIB, then the rest became easy! ST> TCC BGIDEMO.C GRAPHICS.LIB Not need to make library from object file, just specify object file directly: tcc src1.c src2.c moxa1.obj moxa2.obj - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user __ Sent from Yahoo! Mail. More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Help linking to Borland Turbo C project to external object file ?
Hi! 21-Мар-2008 22:26 [EMAIL PROTECTED] (Simon Townsend) wrote to freedos-user@lists.sourceforge.net: ST> Thankyou!, we eventually created a .lib file from the object file we had ST> using TCLIB, then the rest became easy! ST> TCC BGIDEMO.C GRAPHICS.LIB Not need to make library from object file, just specify object file directly: tcc src1.c src2.c moxa1.obj moxa2.obj - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Help linking to Borland Turbo C project to external object file ?
Thankyou!, we eventually created a .lib file from the object file we had using TCLIB, then the rest became easy! We have been using borland turbo because of the nature of the object files provided by Moxa for accessing an RS485 card in DOS, we needed a borland compiler which could run in Freedos. Pacific which is with Freedos is much nicer but would not seem to accept the moxa dos header files. Its amazing how much faster the command line compiler is than the IDE. Now we can get on with our simple DMX controller system! Best wishes Simon - Original Message From: Arkady V.Belousov <[EMAIL PROTECTED]> To: freedos-user@lists.sourceforge.net Sent: Friday, 21 March, 2008 5:21:24 AM Subject: Re: [Freedos-user] Help linking to Borland Turbo C project to external object file ? Hi! 21-Фев-2008 23:30 [EMAIL PROTECTED] (Simon Townsend) wrote to Freedos users : ST> We've managed to get Borland Turbo C 2.0 to compile a large model test file ST> without error, but we need to link to an OBJ file provided by the ST> manufacturer of the card. ST> How do we tell the Borland development environemt that we need to link to ST> this OBJ ? If you mean TC IDE, then open Project menu and press F1. Then you will read: " In its simplest form, the project file is just a list of the C source file names that make up your program. " Also, take a look at examples of TC2 - there is, for example, mcalc.prj. ST> We know that the object file contains the externals we need, because if we ST> TLINK to the OBJ at the command line they get resolved, but if we link at ST> the command line, printf and various other parts of the C libraries aren't ST> getting resolved, and just linking to CL.LIB wasn't enough to resolve all ...But if you need command line, just specify required .obj file at TCC command line between source files. For example, read HELPME!.DOC, especially next topic: " Q. Why does the linker tell me that all the graphics library routines are undefined? A. TCC will not search the graphics library unless you tell it to. You should specify the graphics library on the command line. For example, to compile BGIDEMO, type TCC BGIDEMO.C GRAPHICS.LIB " - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user ___ Rise to the challenge for Sport Relief with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Help linking to Borland Turbo C project to external object file ?
Hi! 21-Фев-2008 23:30 [EMAIL PROTECTED] (Simon Townsend) wrote to Freedos users : ST> We've managed to get Borland Turbo C 2.0 to compile a large model test file ST> without error, but we need to link to an OBJ file provided by the ST> manufacturer of the card. ST> How do we tell the Borland development environemt that we need to link to ST> this OBJ ? If you mean TC IDE, then open Project menu and press F1. Then you will read: " In its simplest form, the project file is just a list of the C source file names that make up your program. " Also, take a look at examples of TC2 - there is, for example, mcalc.prj. ST> We know that the object file contains the externals we need, because if we ST> TLINK to the OBJ at the command line they get resolved, but if we link at ST> the command line, printf and various other parts of the C libraries aren't ST> getting resolved, and just linking to CL.LIB wasn't enough to resolve all ...But if you need command line, just specify required .obj file at TCC command line between source files. For example, read HELPME!.DOC, especially next topic: " Q. Why does the linker tell me that all the graphics library routines are undefined? A. TCC will not search the graphics library unless you tell it to. You should specify the graphics library on the command line. For example, to compile BGIDEMO, type TCC BGIDEMO.C GRAPHICS.LIB " - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] Help linking to Borland Turbo C project to external object file ?
We're trying to produce an EXE file to drive a Moxa RS485 card. We've managed to get Borland Turbo C 2.0 to compile a large model test file without error, but we need to link to an OBJ file provided by the manufacturer of the card. How do we tell the Borland development environemt that we need to link to this OBJ ? We know that the object file contains the externals we need, because if we TLINK to the OBJ at the command line they get resolved, but if we link at the command line, printf and various other parts of the C libraries aren't getting resolved, and just linking to CL.LIB wasn't enough to resolve all the externls that seem to be needed. It will probably be simplest if we can find out how to do it from within the development environment. Can anybody help please ? Many thanks ! Simon. __ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user