Re: compiling c++ classes in linux machine using gedit

Posted by Pavan Shah-2 on
URL: http://quantlib.414.s1.nabble.com/compiling-c-classes-in-linux-machine-using-gedit-tp13921p13922.html

I figured it out all.
FOr c++, it has to be ".hpp" not ".h" .

On my windows machine visual studio doesn't care it seems like but gnu compiler does care.

Pavan


On Wed, Jan 16, 2013 at 6:38 PM, Pavan Shah <[hidden email]> wrote:
Hi all,

I am trying to compile the same code that I already compiled in visual studio on my windows machine but now using gedit on a linux machine.

Based on the error I get on my terminal, it seems like none of my member functions in classes are being recognized.  The error tells me that these member functions are not declared when they clearly are in the corresponding ".h" file.

All the ".cpp" and ".h" files are in the same directory on my linux machine.
And I am using #include "myclass.h"  at the top of my ".cpp" files.
I am not sure what is causing the g++ compiler to not recognize any of members in classes.

Keep in mind that this exact same code works and compiles on windows using visual studio.

What needs to change?
is there something in gedit that I should change?



Thanks
Pavan


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users