Menu

simple help with class

Anonymous
2002-09-25
2012-09-26
  • Anonymous

    Anonymous - 2002-09-25

    Does anyone know how to link an implementation file (ie: Myclass.C) with a client code (ie: usingClasses.C) so they can use my own Myclass.h header file?
    This is weird, I tried doing it in a G++ compiler on a solaris unix terminal at school and it worked. However, the same exact code didn't work in Dev-cpp. I know there are other options like console application or empty project and I don't know how to use those.
    Please let me know the correct way to link an implementation and a client code so they can use my own defined class.

    Thank you very much.

    Santiago

     
    • Nobody/Anonymous

      1.Are you sure there's a class somewhere in those .C files? gcc would compile it as C code, not C++.
      2.Is myclass.c included in your project? Without it the project can compile but never link successfully.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.