# Develop without Visual Studio?

**URL:** <https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300>\
**Category:** CUDA Programming and Performance\
**Created:** [June 22, 2009, 7:32am UTC](https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300 "2009-06-22T07:32:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPUuser](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@GPUuser](https://forums.developer.nvidia.com/u/GPUuser)\
**Post date:** [June 22, 2009, 7:32am UTC](https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300/1 "2009-06-22T07:32:28Z")

</div>

Hi

I just downloaded and installed CUDA on my Windows XP system. In the SDK, I see various sample applications - like options pricing, etc.  
When I run the SDK browser, I can run these applications, too.

I have 2 questions/issues:

a) Can I make any code changes to these sample applications, and rebuild and run them? I don’t have microsoft visual studio installed.

B) When I try running nvcc, I get an error message - something like “compiler cl.exe not found in path”

Any help will be appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![prodigyaj](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@prodigyaj](https://forums.developer.nvidia.com/u/prodigyaj)\
**Post date:** [June 23, 2009, 2:29am UTC](https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300/2 "2009-06-23T02:29:41Z")

</div>

The cuda programming environment compiles codes a little differently. First of all cl.exe is a process info for MicrosoftÂ® C/C++ Compiler Driver. (like mingcw for gcc etc)  
The nvcc compiler compiles the cuda section of the codes and while normal c/c++ codes are handled by cl compiler.  
I hope that helps and answers both your questions

Regards  
AJ

---

<div class="post-metadata">

**Author:** ![cbuchner1](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cbuchner1/32/14168_2.png) [@cbuchner1](https://forums.developer.nvidia.com/u/cbuchner1)\
**Post date:** [June 23, 2009, 9:29am UTC](https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300/3 "2009-06-23T09:29:35Z")

</div>

> [@](#):
>
> B) When I try running nvcc, I get an error message - something like “compiler cl.exe not found in path”

You need to run this from a command prompt that has the Microsoft compiler in the PATH.

If you don’t currently have Visual Studio installed, then installing the Microsoft Windows SDKs will give you the required compilers.

Christian

---

<div class="post-metadata">

**Author:** ![Kiran\_CUDA](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Kiran\_CUDA](https://forums.developer.nvidia.com/u/Kiran_CUDA)\
**Post date:** [June 23, 2009, 1:52pm UTC](https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300/4 "2009-06-23T13:52:30Z")

</div>

> [@](#):
>
> You need to run this from a command prompt that has the Microsoft compiler in the PATH.
> 
> If you don’t currently have Visual Studio installed, then installing the Microsoft Windows SDKs will give you the required compilers.
> 
> Christian

I have similar questions:

1-Is it necessary to have Microsoft Visual studio for compiling CUDA programs ?

2-And what if I am running from Linux ?

3-Why is CUDA dependent on Microsoft’s products?

4-Is there any substitute for MV Studio because my laptop has Celeron Processor and MV Studio makes it very slow.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![martiert](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@martiert](https://forums.developer.nvidia.com/u/martiert)\
**Post date:** [June 26, 2009, 7:57am UTC](https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300/5 "2009-06-26T07:57:22Z")

</div>

1-No, install Windows SDK to get what you need.

2-Then CUDA uses gcc, or the c compiler you choose.

3-It’s dependent on a compiler for the C/C++ code.

4-You can use any editor you want, as long as you have a compiler nvcc can use for the C/C++ code.

---

<div class="post-metadata">

**Author:** ![vishvajeetramanuj95](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@vishvajeetramanuj95](https://forums.developer.nvidia.com/u/vishvajeetramanuj95)\
**Post date:** [August 2, 2020, 2:40am UTC](https://forums.developer.nvidia.com/t/develop-without-visual-studio/10300/6 "2020-08-02T02:40:56Z")

</div>

@martiert can you please describe the process or share link to do process for making build using windows SDK.
