Well, here (Cygwin on Win XP SP3) there's no problem. But you've got a glaring error in your code anyways, which probably is the source of your problems:
On the red marked line you're trying to pass of a string as a character. Replace the single quotes with double quotes.
Hi,
I have install cygwin in my PC which is having Windows-XP.
I am able to run c programm successfully using gcc compiler but when i am running c++ program it is giving the following error:
$ gcc abc.cpp
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp:(.text+0xd): unde... (0 Replies)
I'm trying to install the jed text editor on a SunOS 5.10 box. It depends on the s-lang library, which I installed to ~/lib. I'm trying to install jed to ~/jed (it's a box @ my university, so I don't have rights to install globally), but when I run make I get this error:
It looks like it... (1 Reply)
Hello, I am trying to install glib on my development box - with little/no luck. Below are some details of the box:
SunOS 5.8 Generic_117350-38 sun4u sparc SUNW,Ultra-Enterprise
gcc version 2.95.2 19991024 (release)
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Glib version:... (2 Replies)
hi...
i'm working on windows xp currently but i have to work on linux.
the problem is there is no internet in linux OS so i decided to use cygwin which (i was told) can be used for unix based commands to an extent in windows.i have to write c-programs and i'm using emacs as editor and g++... (0 Replies)
hihi, im new here.
just start to use cygwin as unix-based in Windows XP.
my installation of cygwin is not success, it has procedure entry_impure_ptr problem due with ash.exe, install_info.exe, and In-exe files.
do anyone know why is that so? (3 Replies)
Hi
When im trying to do make --version and make --help in HP-UX
it throws error
Make: Unknown flag argument -. Stop.
a soft link is present in this directory /usr/bin/make
and hard link is in /usr/ccs/bin/make
what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Hi All,
I am using cygwin 2.697.
When i was working with LAN its working fine.
But when i am trying to working via ( Aventail Smart Tunnel), It close after 20 mins.
But Exceed-10 is working fine, but it take more resource and its not freeware.
so kindly help me in this regards.
I have a... (1 Reply)
I can't figure out why cygwin won't let me write a file to this directory. Any ideas?
$ id
uid=1007(jdbaldwin) gid=513(None) groups=513(None),0(root),544(Administrators),545(Users)
$ ls -lad .
drwxrwxrwx+ 1 jdbaldwin None 0 2010-09-29 12:47 .
$ touch x
touch: cannot touch `x': Permission... (3 Replies)
Ok I was trying to test if I installed correctly gsl, I followed the INSTALL file and still I don't know what is wrong. Here is a sample code to test gel,I got it from Random Number Generator Examples - GNU Scientific Library -- Reference Manual
(note: made a few changes in the code)
#include... (2 Replies)
I tried to compile the files in basic_dump_ex using cygwin :
/cygdrive/c/WpdPack/Examples-pcap/basic_dump_ex
$make
but I got this :
cc -g -O -mno-cygwin -I ../../include -c -o basic_dump_ex.o basic_dump_ex.c
cc: error: unrecognized command line option ‘-mno-cygwin’... (6 Replies)
Discussion started by: steve120
6 Replies
LEARN ABOUT DEBIAN
hostname
FBB::Hostname(3bobcat) Host Info FBB::Hostname(3bobcat)NAME
FBB::Hostname - Contains name/address info about a host
SYNOPSIS
#include <bobcat/hostname>
Linking option: -lbobcat
DESCRIPTION
FBB::Hostname objects inherit from Hostent, and offers information about a host, like Hostent. Apart from being initialized by a hostname
or host address, they can also be initialized by a FBB::InetAddress object. Most of the functionality of an FBB::Hostname object is avail-
able through its parent-class FBB::Hostent.
NAMESPACE
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
INHERITS FROM
FBB::Hostent
CONSTRUCTORS
o Hostname():
The default constructor initializes an empty FBB::Hostname object.
o Hostname((std::string const &host)):
This constructor initializes an FBB::Hostname object from a string representing the name or dotted decimal address of a host. An
FBB::Errno object is thrown if the hostname information could not be retrieved.
o Hostname(InetAddress const &inetAddress):
This constructor initializes an FBB::Hostname object from an InetAddress object. An FBB::Errno object is thrown if the hostname
information could not be retrieved. The copy constructor is available.
MEMBER FUNCTIONS
All members of FBB::Hostent are available, as FBB::Hostname inherits from this class. There are no additional members.
EXAMPLE
#include <iostream>
#include <bobcat/hostname>
#include <bobcat/errno>
using namespace std;
using namespace FBB;
int main(int argc, char **argv)
{
while (true)
{
cout << "Enter name or address:
";
string str;
if (!getline(cin, str))
return 0;
if (str == "")
break;
try
{
Hostname h(str);
cout << "Official name:
";
cout << h.hostname() << endl;
cout << "Aliases:
";
for (size_t idx = 0; idx < h.nAliases(); idx++)
cout << h.alias(idx) << " ";
cout << endl;
cout << "Adresses:
";
for (size_t idx = 0; idx < h.nAddresses(); idx++)
cout << h.dottedDecimalAddress(idx) << " ";
cout << endl;
}
catch (Errno const &err)
{
cout << err.why() << endl;
}
}
return 0;
}
FILES
bobcat/hostname - defines the class interface
SEE ALSO bobcat(7), hostent(3bobcat)BUGS
None Reported.
DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature;
o bobcat_3.01.00-x.tar.gz: source archive;
o bobcat_3.01.00-x_i386.changes: change log;
o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries;
o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages;
o http://sourceforge.net/projects/bobcat: public archive location;
BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.
COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl).
libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::Hostname(3bobcat)