473,661 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(1 0,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++sourc ecode\cccfiles %1
f:\bigc++source code\cccfiles\c cc_msw.cpp
f:\bigc++source code\cccfiles\c cc_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 2167
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(1 0,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++sourc ecode\cccfiles %1
f:\bigc++source code\cccfiles\c cc_msw.cpp
f:\bigc++source code\cccfiles\c cc_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
18701
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 sequentially call the *.sql files? i.e. call schemaVersionCheck.sql call addFieldToLoanTable.sql call updateLoanTrigger.sql
2
2728
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 differentiate batch files between the two prompts? Also, where might I find information on the differences between the 2 prompts? Thanks, Herb
8
5464
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
1
16009
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 utility sits in C:\Documents and Settings\Dennis\My Documents\Database\oexport The files to be uploaded in C:\Documents and Settings\Dennis\My Documents\Database\oexport\files
1
3705
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 attach this script files and inq files. I cant understand this error. Please suggest me. You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am online. Plz....Plz..Plz...
1
2000
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 can start the Sub from a command line prompt, then I can make the command a batch file. If I can make the command a batch file, I can schedule it. If the sub were, say, basMyProcedureModule.MySubName, could I invoke it
4
4991
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 creates a DLL. I am able to build the project without any probs in the IDE, however - when I build the project from the command line (using the same options shown in the 'Command line' node in the 'Project Settings' dialog box), I get the following...
3
6440
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 invoked it from a Command window with the command:
0
4011
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 valid) but in this one I am having problems. Any time I run this I get the folowing message from the db2 clp window that opens up. SQL0104N An unexpected token "SET" was found following "<identifier>". Expected tokens may include: "NEW". ...
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8855
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7364
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1986
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.