| Home » Categories » Multiple Categories | 
| How to compile a C++ project using the sample LDM makefile | 
| Article Number: 551 | Rating: Unrated | Last Updated: Tue, May 12, 2015 at 7:43 PM | 
| Although the samples included with the LDM modules are written in C, it is also possible to compile the C++ code as a C++ project. 1) Rename your source code extensions from .cpp to .c (case sensitive!) 2) Replace all instances of "gcc" with "g++" in the makefile Compiling the code through g++ will force C++ code as output. While this workaround should suffice for simple C++ projects, it has not been well tested. For production builds on more advanced projects, the use of a custom makefile is highly recommended. 
 | 
| 
							Attachments (0)    
									There are no attachments for this article.
							 	  | 
| 
								Comments     
										There are no comments for this article. Be the first to post a comment.
								   | 
| 
										MVI56E-LDM FAQ
										 Viewed 1 times  since  Thu, Jun 12, 2014  
										Where are the on-board jumper positions defined for my MVI module?
										 Viewed 1 times  since  Tue, Nov 28, 2006  
										What is the best ProSoft solution for communicating to devices that use the Siemens USS ASCII-based protocol?
										 Viewed 1 times  since  Mon, Feb 18, 2008  | 

 Add Comment
 Add Comment
 Subscribe to Article
Subscribe to Article Print Article
Print Article Email Article to Friend
Email Article to Friend
							 Export to PDF
Export to PDF Export to MS Word
Export to MS Word Tweet This Article
Tweet This Article Digg It
Digg It Stumble Upon
Stumble Upon Del.icio.us
Del.icio.us