Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: C++ and web access

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    6

    C++ and web access

    I done some programming in UNIX and I hope to port it over to Linux. What should I do? I am new to Linux. Need to use for programming and web access. What are the steps to d so? Does Knoppix comes with gcc, perl and web access(e.g. setup webserver)?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Yes to all 3

    You might like to see if there's a compatable gcc on your *nix system. From (ancient) memory, it's nice to check that the code compiles on gcc on the original platform before trying to port it over -- it rules out compiler quirks.

    On my *nix course I used to drive everyone nuts by insisting on using bash instead of ksh and gcc instead of whatever compiler HP-UX has as default.

  3. #3
    Junior Member
    Join Date
    Mar 2004
    Posts
    6
    So what are the steps to setup the web server? Does it have CGI?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    It's Apache. CGI is available (although very much out of fashion). Just get hold of the Apache documentation: it's all there.

  5. #5
    Junior Member
    Join Date
    Mar 2004
    Posts
    6
    Can anyone help me? I was trying to compile in Knoppix, but I got the following error. When I did it in Sun Solaris, it was ok. What is wrong?

    g++ -c stopword.cpp
    In file included from stopword.cpp:3:
    stopword.h:6:20: hash_set: No such file or directory
    In file included from /usr/include/c++/3.3/backward/fstream.h:31,
    from stopword.h:7,
    from stopword.cpp:3:
    /usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
    In file included from stopword.cpp:3:
    stopword.h:19: error: `hash' was not declared in this scope
    stopword.h:19: error: parse error before `char'
    stopword.cpp: In member function `void CStopWord::load(char*)':
    stopword.cpp:16: error: `ios' undeclared (first use this function)
    stopword.cpp:16: error: (Each undeclared identifier is reported only once for
    each function it appears in.)
    stopword.cpp:16: error: parse error before `::' token
    stopword.cpp:19: error: request for member `fail' in `stopwordFile', which is
    of non-aggregate type `std::fstream ()(...)'
    stopword.cpp:21: error: `cout' undeclared (first use this function)
    stopword.cpp:29: error: request for member `getline' in `stopwordFile', which
    is of non-aggregate type `std::fstream ()(...)'
    stopword.cpp:39: error: `stopwordSet' undeclared (first use this function)
    stopword.cpp: In member function `bool CStopWord::lookup(const char*)':
    stopword.cpp:49: error: `hash_set' undeclared (first use this function)
    stopword.cpp:49: error: parse error before `char'
    stopword.cpp:50: error: `it' undeclared (first use this function)

  6. #6
    Junior Member
    Join Date
    Mar 2004
    Posts
    6

  7. #7
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    Take a look at:

    http://www.knoppix.net/forum/viewtopic.php?p=38190

    Good Luck!

    Regards,
    AJG

  8. #8
    Junior Member
    Join Date
    Mar 2004
    Posts
    6
    what are the changes that I need to make?
    It can't seem to find hash_set which is a library file.

    "stopword.h:6:20: hash_set: No such file or directory"

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by outsider
    what are the changes that I need to make?
    It can't seem to find hash_set which is a library file.

    "stopword.h:6:20: hash_set: No such file or directory"
    It could be one of several packages if you are installed to the HD then you should check to see if you have them installed, the search at http://packages.debian.org.

    http://packages.debian.org/cgi-bin/s...se=insensitive

  10. #10
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    g++ requires

    using namespace std;

    are you including this line?

    Regards,
    AJG

Page 1 of 2 12 LastLast

Similar Threads

  1. Can't access internet
    By Wrincle in forum General Support
    Replies: 3
    Last Post: 05-02-2004, 07:05 PM
  2. cant access net
    By dankehoe1 in forum Networking
    Replies: 7
    Last Post: 01-08-2004, 09:10 AM
  3. need access to HD
    By senorian in forum The Lounge
    Replies: 4
    Last Post: 08-26-2003, 11:04 PM
  4. DVD + FDD can't Access.
    By TheCyberDude in forum Hardware & Booting
    Replies: 3
    Last Post: 06-19-2003, 08:39 PM
  5. HD access possible?
    By cehjohnson in forum General Support
    Replies: 5
    Last Post: 06-02-2003, 10:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX picture

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX

$59.99



Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery picture

Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery

$54.99



⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠ picture

⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠

$29.90



ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield picture

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield

$84.99



ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio picture

ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio

$34.99



GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard picture

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard

$59.99



ASRock B550M PRO4 AM4 AMD B550 SATA 6Gb/s Micro ATX AMD Motherboard picture

ASRock B550M PRO4 AM4 AMD B550 SATA 6Gb/s Micro ATX AMD Motherboard

$76.49



ASUS PRIME Z370-A II LGA 1151 Intel Z370 DDR4 DIMM USB3.1 DVI  ATX RGB picture

ASUS PRIME Z370-A II LGA 1151 Intel Z370 DDR4 DIMM USB3.1 DVI ATX RGB

$69.99



ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU picture

ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU

$45.00



ASUS ROG STRIX X870E-E GAMING WIFI picture

ASUS ROG STRIX X870E-E GAMING WIFI

$289.99