Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » How to compile non C/C++ files in an U++ project
How to compile non C/C++ files in an U++ project [message #44590] Sat, 11 April 2015 16:58 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

I wanted to compile non C/C++ files in an U++ project.

In my case, I have to compile ".cu" files and link them with the project.

For example, now, for demo.cu file, I have to:

- Compile it with "nvcc -c demo.cu" to get demo.obj
- Add demo.obj in U++ project libraries
- Compile it in U++

Is there any way to do it all in an U++ project.

Additionally it would be great to let U++ to highlight .cu and .cl files as .cpp files.

Best regards
Koldo


Best regards
Iñaki
Re: How to compile non C/C++ files in an U++ project [message #44591 is a reply to message #44590] Sat, 11 April 2015 18:07 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Koldo,

Quote:
In my case, I have to compile ".cu" files and link them with the project.

For example, now, for demo.cu file, I have to:

- Compile it with "nvcc -c demo.cu" to get demo.obj
- Add demo.obj in U++ project libraries
- Compile it in U++

This should be possible with custom build step...


Quote:
Additionally it would be great to let U++ to highlight .cu and .cl files as .cpp files.

You can set per file highlighting (right click on file in package -> File properties). I don't think it is possible to set this globally for all files in all packages.

Best regards,
Honza
Re: How to compile non C/C++ files in an U++ project [message #44592 is a reply to message #44591] Sun, 12 April 2015 15:24 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Thank you Honza

It works perfect.


Best regards
Iñaki
Re: How to compile non C/C++ files in an U++ project [message #44593 is a reply to message #44592] Sun, 12 April 2015 15:46 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Shocked Amazing!

When external compiler (neither MSC nor MinGW) finds an error, TheIDE is so smart that gets the error message and moves the cursor to the error...


Best regards
Iñaki
Previous Topic: GDB/MINGW interface Bug fix
Next Topic: how to compile source files and create shared lib.
Goto Forum:
  


Current Time: Thu Mar 28 22:34:34 CET 2024

Total time taken to generate the page: 0.01047 seconds