473,387 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help command line batch file linking .h files NOVICE

Hello,
I have spend the past day trying to figure out how to do this.
PROBLEM:
My instructor wants us to use a shapes library that horstmann wrote.
An example would be:
/////////////////////////
#include "ccc_win.h"

int ccc_win_main()
{
Line vertical( Point(-5,10), Point(-5,-10));
cwin << vertical;
vertical.move(10,0);
cwin << vertical;
cwin << Line( Point(-5,0), Point(5,0));
return 0;
}
///////////////////////
The problem is I don't know how to link in the file at the command
line(using borland c++ compiler). The professor said to create a batch
file to automate the process and gave us an example .bat file:
////////////////////////
bcc32 -W -If:\bigc++sourcecode\cccfiles %1
f:\bigc++sourcecode\cccfiles\ccc_msw.cpp
f:\bigc++sourcecode\cccfiles\ccc_shap.cpp
//////////////////////////
I am really at a loss. How would one link in an include like ccc_win.h
at the command line? And how does one make the batch file work. He said
to just put it in the same directory as the cpp file we're compiling
but that doesn't work.
Are their any good tutorials on how to link at the command line custom
built libraries? Cause I've been googling and checking my books for
proper syntax but nothing is helping.
Problem is I don't know what to do with this.

Sep 17 '06 #1
3 2154
First person to give me a working answer gets $5 via paypal.

andrew wrote:
Hello,
I have spend the past day trying to figure out how to do this.
PROBLEM:
My instructor wants us to use a shapes library that horstmann wrote.
An example would be:
/////////////////////////
#include "ccc_win.h"

int ccc_win_main()
{
Line vertical( Point(-5,10), Point(-5,-10));
cwin << vertical;
vertical.move(10,0);
cwin << vertical;
cwin << Line( Point(-5,0), Point(5,0));
return 0;
}
///////////////////////
The problem is I don't know how to link in the file at the command
line(using borland c++ compiler). The professor said to create a batch
file to automate the process and gave us an example .bat file:
////////////////////////
bcc32 -W -If:\bigc++sourcecode\cccfiles %1
f:\bigc++sourcecode\cccfiles\ccc_msw.cpp
f:\bigc++sourcecode\cccfiles\ccc_shap.cpp
//////////////////////////
I am really at a loss. How would one link in an include like ccc_win.h
at the command line? And how does one make the batch file work. He said
to just put it in the same directory as the cpp file we're compiling
but that doesn't work.
Are their any good tutorials on how to link at the command line custom
built libraries? Cause I've been googling and checking my books for
proper syntax but nothing is helping.
Problem is I don't know what to do with this.
Sep 17 '06 #2
andrew posted:
First person to give me a working answer gets $5 via paypal.

Yes, but is it really worth it having to go through all that Escrow
business... unless of course you're suggesting that we just take your word
for it.

--

Frederick Gotham
Sep 17 '06 #3
andrew wrote:
First person to give me a working answer gets $5 via paypal.

andrew wrote:
The problem is I don't know how to link in the file at the command
line(using borland c++ compiler).
If you post in a Borland C++ newsgroup, they'll give you the
answer for free. See http://newsgroups.borland.com/

Sep 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dynoweb | last post by:
I have several *.sql files with schema/data changes to be applied to our current database. Is there a way to create a TSQL script that could be run from the SQL Query Analyzer that would...
2
by: Herb Stevenson | last post by:
Hello all. I need to set up a batch file to work w/ the Visual Studio.NET 2003 command prompt. However, when I run the batch file it uses the standard command prompt. Is there a way to...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Dennis Gaida | last post by:
Hi there, I want to upload some exported reports to a FTP Server, for this I use a command line FTP utility. My Database sits in C:\Documents and Settings\Dennis\My Documents\Database The FTP...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
1
by: Fester Bestertester | last post by:
Okay, here's the bonehead question of the day: Is there some syntax or command line switch that I can use to call a Public Sub from a command line? If so, what is the syntax? The purpose: if I...
4
by: Bit byte | last post by:
I have a project that I normally build (without problems) from the DevStudio IDE. However, I have embarked on automating all my builds (this test project being one of several). The project...
3
by: Richard | last post by:
Hi All, I'm running MySQL version: 5.0.15-nt on WinXP-Pro/SP2. I created a one-line batch file DumpPAM.bat in a directory on the PATH: mysqldump pmtallocmodel_development %1%.txt I...
0
by: wb5plj | last post by:
Hi I am having a problem passing some sql to the db2cmd via ant. This is very confusing as I am doing this exact thing elseware with no problem (just differant sql, and I have verified the sql is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.