<html>
<head>
</head>
<body>
I have already developped with Borland C++, and I have resolved some problems
by using kdevelop. But I know some differences like, under linux, an empty
line must be after the "#endif" of the header files (and perhaps eiver before).<br>
<br>
Can you specify the errors you obtained, the kdevelop version.... ?<br>
<br>
Eric<br>
<br>
<br>
Ryszard Klos wrote:<br>
<blockquote type="cite" cite="mid:20020526003655.OEGI13253.rwcrmhc54.attbi.com@there">
  <pre wrap="">I'm mostly using Borland C++ builder under Windows. Recently I've installed <br>Linux and I started using Kdevelop. I'm attaching five files main.cpp, <br>student.h, studend.cpp, studentAt.h and studentAt.cpp which are my Laboratory <br>assignment from college showing class inheritance and polymorphism. This <br>program compiles with no errors under C++ builder, under Kdevelop I'm <br>receiving quite a few (starting from syntax error ??). I wrote couple <br>programs for college using both compilers, up to this time I was able to <br>figure out difference necessary to make program compile in both environments, <br>but this time I have no clue where to start, because I don't see anything <br>wrong.<br>If you may tell me where is the problem?<br>I'd like to get better knowledge about Kdevelop to and try transfer my little <br>program supporting programming CNC mills to Linux environment.<br><br>Sincerely,<br><br><br>Ryszard Klos<br><a class="moz-txt-link-abbreviat
ed" href="mailto:Ryszardklos@attbi.com">Ryszardklos@attbi.com</a><br><a class="moz-txt-link-abbreviated" href="mailto:Info@cncmilleditor.com">Info@cncmilleditor.com</a></pre>
  <pre wrap=""><br><hr width="90%" size="4"><br>#ifndef STUDENTAT_H<br>#define STUDENTAT_H<br>#include <string.h><br>#include <iostream.h><br>#include <stdlib.h><br>#include "student.h"<br><br>class studentAt : public student<br>{<br>  private:<br>   string studSport;<br>  public:<br>   virtual void identify();<br>   studentAt(string sName,string sSSN, string sSport);<br>};<br>#endif</pre>
  <pre wrap=""><br><hr width="90%" size="4"><br>#ifndef STUDENT_H<br>#define STUDENT_H<br><br>#include <string.h><br>#include <iostream.h><br>#include <stdlib.h><br><br>class student<br>{<br>protected:<br>   string   studName;<br>   string   studSSN;<br>public:<br>   virtual void identify();<br>   student(string sName,string sSSN):studName(sName),studSSN(sSSN)<br>   {};<br>};<br>#endif</pre>
  <pre wrap=""><br><hr width="90%" size="4"><br>/***************************************************************************<br>                          studentAt.cpp  -  description<br>                             -------------------<br>    begin                : Sat May 25 2002<br>    copyright            : (C) 2002 by Ryszard Klos<br>    email                : <a class="moz-txt-link-abbreviated" href="mailto:Rychu@iname.com">Rychu@iname.com</a><br> ***************************************************************************/<br><br>/**************************************************************************/<br>#include <string.h><br>#include <iostream.h><br>#include <stdlib.h><br>#include "studentAt.h"<br>// ***************************************************************************<br>studentAt::studentAt(string sName,string sSSN, string sSport):student(sName,sSSN)<br>{<br>  studSport = sSport;<br>}<br>// *************************************************
**************************<br>void studentAt::identify()<br>{<br>     cout << "Student's Name " << studName << " Student's SSN " << studSSN << " Student's Sport " << studSport << endl;<br>}<br>// ***************************************************************************<br></pre>
  <pre wrap=""><br><hr width="90%" size="4"><br>/***************************************************************************<br>                          student.cpp  -  description<br>                             -------------------<br>    begin                : Sat May 25 2002<br>    copyright            : (C) 2002 by Ryszard Klos<br>    email                : <a class="moz-txt-link-abbreviated" href="mailto:Rychu@iname.com">Rychu@iname.com</a><br> ***************************************************************************/<br><br>/***************************************************************************/<br>#include <string.h><br>#include <iostream.h><br>#include <stdlib.h><br>#include "student.h"<br>// **************************************************************************<br>void student::identify()<br>{<br>  cout << "Student's Name " << studName << " Student's SSN " << studSSN << endl;<br>}</pre>
  <pre wrap=""><br><hr width="90%" size="4"><br>/***************************************************************************<br>                          main.cpp  -  description<br>                             -------------------<br>    begin                : Sat May 25 17:05:35 EDT 2002<br>    copyright            : (C) 2002 by Ryszard Klos<br>    email                : <a class="moz-txt-link-abbreviated" href="mailto:Rychu@iname.com">Rychu@iname.com</a><br> ***************************************************************************/<br>#ifdef HAVE_CONFIG_H<br>#include <config.h><br>#endif<br><br>#include <iostream.h><br>#include <stdlib.h><br>#include "student.h"<br>#include "studentAt.h"<br>/***************************************************************************<br><br> ***************************************************************************/<br><br>int main(int argc, char *argv[])<br>{<br> student ja ("Hohn Anderson", "345-12-3547");<br> student 
bw ("Bill Williams", "286-72-6194");<br> studentAt bj ("Bob Johnson", "294-87-6285","football");<br> studentAt dr ("Dick Robinson", "669-289-9296","baseball");<br><br> student *stud[] = {&ja, &bw, &bj, &dr};<br><br> for (int i = 0 ; i < 4 ; i++) stud[i]->identify();<br>  return EXIT_SUCCESS;<br>}<br></pre>
  </blockquote>
  <br>
  </body>
  </html>