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 Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
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:
------------------------------------------------------------------------------ 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 |
That’s very strange. I’ve been using the GNU compiler for years and my include files have always been .h. Well, if that works for you, good enough. Gerardo Da: Pavan Shah [mailto:[hidden email]]
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 |
thanks for the response guys Pavan
On Thu, Jan 17, 2013 at 2:35 AM, Ballabio Gerardo <[hidden email]> wrote:
------------------------------------------------------------------------------ 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 |
Free forum by Nabble | Edit this page |