Compile time errors!

This is a discussion on Compile time errors! within the C++ Programming forums, part of the General Programming Boards category; There is this line of errors that come out whenever i compiled my program ,although the program still run, i ...

  1. #1
    Registered User
    Join Date
    Dec 2003

    Compile time errors!

    There is this line of errors that come out whenever i compiled my program ,although the program still run, i am curious to find out what does this error line means??
    	$(CPP) -c "../../../../Documents and Settings/MelaOS/Desktop/TrialNeRror/JenisProdukListImp.cpp" -o "../../../../Documents and Settings/MelaOS/Desktop/TrialNeRror/JenisProdukListImp.o" $(CXXFLAGS)
    "../../../../Documents and Settings/MelaOS/Desktop/TrialNeRror/JenisPelangganImp.o": ../../../../Documents\ and\ Settings/MelaOS/Desktop/TrialNeRror/JenisPelangganImp.cpp
    	$(CPP) -c "../../../../Documents and Settings/MelaOS/Desktop/TrialNeRror/JenisPelangganImp.cpp" -o "../../../../Documents and Settings/MelaOS/Desktop/TrialNeRror/JenisPelangganImp.o" $(CXXFLAGS)
    n my JenisPelanggan file is below, is there something wrong with it somewhere?? I've separated the file below into a header and an implementation file...Please help!!

    #include <iostream>
    #include <stdlib.h>
    #include <string> 
    #include <fstream>
    #include "JenisProduk.h"
    #include "JenisProdukList.h"
    using namespace std;
    class JenisPelanggan 
        void setPelangganInfo
              (string namaP,string kod,int bilP,JenisProdukList& inventori);
        //setkan nilai awal untuk data private melalui input pengguna
        void setKiraJumlah(float,float);
        //mengira jumlah pesanan dan jumlah harga untuk seseorang pelanggan
        string getNamaPelanggan();
        //memulangkan nama pelanggan untuk pelanggan tersebut
        void paparPelangganInfo();
        //memaparkan maklumat pelanggan seperti nama pelanggan dan
        //bilangan pesanan 
        JenisPelanggan(string =" ",float =0,float =0);
        string namaPelanggan;
        float jumPesanan;
        float jumHarga;
        JenisProdukList inventori;  
    void JenisPelanggan::setPelangganInfo
            (string namaP,string kod,int bilP,JenisProdukList& otherInventori)
       namaPelanggan = namaP;
       inventori = otherInventori;
    void JenisPelanggan::setKiraJumlah(float jPesanan,float jHarga)
       jumPesanan = jPesanan;
       jumHarga = jHarga;
    string JenisPelanggan::getNamaPelanggan()
    void JenisPelanggan::paparPelangganInfo()
      cout<<"Nama   Pelanggan: "<<namaPelanggan<<endl;
      cout<<"Jumlah Pesanan  : "<<jumPesanan<<endl;
      cout<<"Jumlah Harga    : "<<jumHarga<<endl;
    JenisPelanggan::JenisPelanggan(string namaP,float Jpesanan,float jHarga)
       namaPelanggan = namaP;
       jumPesanan = Jpesanan;
       jumHarga = jHarga;

  2. #2
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Phildelphia, PA
    Those error messages aren't descritive enough. What IDE/compiler are you using? I'm used to error messages containing the line number and type of error.

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  3. #3
    Registered User
    Join Date
    Dec 2003

    Follow up

    I'm using Dev-c++, and there's some more stuff on the compile log area about my implementation .cpp file over riding my same file name .o file, what does that all mean??

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    well, it might be better to post the whole compile log, or attach it in a file.

    Check for any spaces within your paths, Dev-C++ uses the MinGW port of GCC by default, and thus spaces may cause problems.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile errors with overloading >> operators
    By GMHummerH1 in forum C++ Programming
    Replies: 1
    Last Post: 12-19-2004, 06:13 PM
  2. The space time continueimnms mm... (rant)
    By Jeremy G in forum A Brief History of
    Replies: 32
    Last Post: 06-27-2004, 01:21 PM
  3. I apologize. Good bye.
    By doubleanti in forum A Brief History of
    Replies: 14
    Last Post: 05-03-2002, 06:51 PM
  4. Compile Errors Due to STL & Iterator
    By kuphryn in forum C++ Programming
    Replies: 2
    Last Post: 12-02-2001, 09:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21