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]]
Inviato: giovedì 17 gennaio 2013 1.12
A: QuantLib QuantLib
Oggetto: Re: [Quantlib-users] compiling c++ classes in linux machine using gedit
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
Banca Profilo S.p.A. Corso Italia, 49 - 20122 Milano - Tel. 02 58408.1, Fax 02 5831 6057 Capitale Sociale Euro 136.794.106,00 i.v. Iscrizione al Registro Imprese di Milano, C.F. e P.IVA 09108700155 - [hidden email] Iscritta all’Albo delle Banche e dei Gruppi bancari Aderente al Fondo Interbancario di Tutela dei depositi Aderente al Conciliatore Bancario Finanziario e all’Arbitro Bancario Finanziario Appartenente al Gruppo bancario Banca Profilo e soggetta all’attività di direzione e coordinamento di Arepo BP S.p.A. DISCLAIMER: The information transmitted may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
| Free forum by Nabble | Edit this page |