compiling c++ classes in linux machine using gedit

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling c++ classes in linux machine using gedit

Pavan Shah-2
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
Reply | Threaded
Open this post in threaded view
|

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

Pavan Shah-2
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
Reply | Threaded
Open this post in threaded view
|

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

Ballabio Gerardo-4

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.

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

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

Pavan Shah-2
thanks for the response guys

Pavan


On Thu, Jan 17, 2013 at 2:35 AM, Ballabio Gerardo <[hidden email]> wrote:

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.


------------------------------------------------------------------------------
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