Thread: Compile time errors!

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    14

    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??
    Code:
    	$(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!!

    Code:
    #include <iostream>
    #include <stdlib.h>
    #include <string> 
    #include <fstream>
    #include "JenisProduk.h"
    #include "JenisProdukList.h"
    using namespace std;
     
    class JenisPelanggan 
    {
      public:
        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);
        //constructor
        
      private:
        string namaPelanggan;
        float jumPesanan;
        float jumHarga;
        JenisProdukList inventori;  
        
    };
    
    void JenisPelanggan::setPelangganInfo
            (string namaP,string kod,int bilP,JenisProdukList& otherInventori)
    {
       namaPelanggan = namaP;
       inventori = otherInventori;
       inventori.inputProdukList(kod,bilP);
       inventori.kiraJumlahPesanan(jumPesanan);
       inventori.kiraJumlahHarga(jumHarga);
    }
    
    void JenisPelanggan::setKiraJumlah(float jPesanan,float jHarga)
    {
       jumPesanan = jPesanan;
       jumHarga = jHarga;
    }
    
    string JenisPelanggan::getNamaPelanggan()
    {
        return(namaPelanggan);
    }
    
    void JenisPelanggan::paparPelangganInfo()
    {   
      cout<<"Nama   Pelanggan: "<<namaPelanggan<<endl;
      cout<<"Jumlah Pesanan  : "<<jumPesanan<<endl;
      cout<<"Jumlah Harga    : "<<jumHarga<<endl;
      inventori.printProdukInfo();
    }
    
    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
    Location
    Phildelphia, PA
    Posts
    1,146
    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.
    FAQ

    "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
    Posts
    14

    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
    Location
    Singapore
    Posts
    28,413
    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, 07:13 PM
  2. The space time continueimnms mm... (rant)
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 32
    Last Post: 06-27-2004, 01:21 PM
  3. I apologize. Good bye.
    By doubleanti in forum A Brief History of Cprogramming.com
    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, 10:08 AM