FFT library compilation on Windows [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm using Visual C++ 6.0 on Windows XP and am trying to use FFTW or KISSFFT libraries for my project. Can someone help me understand how I can compile and link them to my program?

It seems that there are project files here : http://www.fftw.org/install/windows.html . There is no reason to use VS 6.

The authors of the library don't recomend to use Microsoft Visual Studio Compiler (http://www.fftw.org/install/windows.html)
Read carefully documentation for FFTW library (see ./doc/fftw3.pdf file inside FFTW library package). According to 10.2 clause of documentation, there is no straightforward way to compile it under Microsoft Visual Studio, like open Visual Studio solution and press "build" button. But there is a hope you will be able to do that if you will follow recomendations in this clause.
10.2 Installation on non-Unix systems
It should be relatively straightforward to compile FFTW even on non-Unix systems lacking the
niceties of a configure script... bla bla bla

You can use http://cygwin.org to build; i've tried before it work very well

Related

Can I make a C++ program in Notepad then compile and run it in Command Prompt? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How would I do this if it is possible? Would it work the same way with Notepad++?
Well, you would need a compiler of some sort. C++ source code won't just run, you need to turn it into an executable file.
And, yes, you can easily do this. If you download MinGW (minimalist GNU for Windows), you can compile source code from the command line just fine, using any editor you want to create the source files.
But it's possibly not something I'd inflict on a beginner, you may want to look in to the Microsoft Visual Studio Express editions since they give you an IDE which makes you life easier, unless you're a crusty old coder like me who still likes using punched cards :-).
Like others mentioned, You just need a compiler to compile a C++ code and then execute it (if the compilation is free of errors). It is NOT dependent on what platform you use to write your code - any text editor works. Notepad or any other editor is just a tool.
You need a compiler to execute the code(e.g, gcc(use cygwin to run gcc if your on Windows)). Also, please search first before you ask(there are a lot of info on the Internet about C++ compiling). I suggest Visual Studio if you want to compile without using the command line(and make programming easier)

Is there any way to compile C++ code written for Linux under Windows? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is there any way to compile C++ code written for Linux under Windows?
Yes, try Cygwin and GCC, the Gnu Compiler Collection.
http://www.cygwin.com
http://gcc.gnu.org
You can use CygWin, which provides a POSIX compatibility layer and a GNU Linux-compatible toolchain.
As others have pointed out you can use Cygwin which includes the gcc and g++ C and C++ compilers. You should also be aware that you can use Eclipse as your IDE with Cygwin. Just be sure to install the Eclipse CDT plugins and make sure that the Cygwin binary directories are in your PATH environment variable before you configure CDT. If you already use Eclipse on Linux for your C++ development this should be a fairly painless transition.

Is it possible to compile C++ code to .exe on a Mac? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I bought a pre-owned Macbook a little while ago and I've been coding inside Sublime Text 2 and compiling in Terminal with g++*. I wrote a stupid text adventure that I'd like to send to a friend and if possible, I'd like to know if there are any methods available on Mac of compiling to exe similar to the way I've been compiling my code (i.e. solely with terminal).
I understand that the easy solution would be to just compile the .cpp file on a Windows computer but my computer is all the way over at the other side of the room.
Thanks.
*Doing this due to being on Snow Leopard and being too tight to buy OSX Lion or an Apple developer license to access Xcode. If anyone has encountered the same problem then I found this solution on here ( https://github.com/kennethreitz/osx-gcc-installer and http://cims.clayton.edu/csci1301/how_to/compiling_c_on_a_mac.htm). Allows you circumvent the bullshit of Apple.
Yes, it is possible and it's known as cross-compilation. Besides building your own toolchain for doing this, you can use MinGW: Cross compiling with MinGW

Microsoft Visual Studio to write C language [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Just couple of days ago I saw my friend was using Microsoft Visual studio to write the C language for our assignment and I'm wondering how can he use that.
I use putty connect to our Linux environment but with Microsoft Visual I see that they look more profession and also very useful in a way of managing the codes for us.
I really love to know if is that really works because I didn't have a chance to ask my friend how he gets it work but if anyone of you could please tell me what option would be the same library for C because all I see is C++ and when I tried compile it doesn't seem to work for me
You can use the /TC compiler option. Sometimes even with a .c extension c files are compiled as C++.
The link I have posted tells on how to do it from command line as well as IDE

How to compile and build c++ application with hand written makefile in windows? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can someone provide a HelloWorld demo ?
If you know about makefiles but are trying to cope with the lack of tools on a default Windows install:
Get cygwin.
If you want to learn about makefiles:
This is actually quite a complex question. Firstly for hello world, you wouldn't need linking of several files, so the makefile could be simplified, but then wouldn't teach you what you need to know.
In a real program you need to link several files, you need to use makefile variables to reduce repetition, etc. So a short example would contain a bunch of stuff with no apparent purpose. So what you need is a good tutorial.
This one is pretty good. Jump in at that page but keep reading, as the stuff on the first page is not the maintainable approach (though it is necessary to know about it).
If you just want to write Windows programs:
Don't bother with makefiles. Use Visual Studio project files and a solution file to tie them together. Most open source projects seem to distribute VS project files for Windows (if anything) and use gnu make for other platforms. Visual Studio is available in a free "Express" edition.
There's an nmake tutorial available here (nmake is what comes with visual studio).
Is there something more specific you're trying to do? It would help get a better answer. Are there some specific differences with Windows that concern you?
Easiest way is to install cygwin and use a normal makefile.
if you are using visual studio - the CSPROJ is the make file - you can try to view it in an editor. with other compilers - you need to check...
If you want to develop Windows applications (as opposed to Posix ones as supported by the bloated Cygwin) from the command line, the best solution is to get the MinGW port of GCC from Twilight Dragon, and the MSYS port of the standard GNU tools such as make. You should also get a copy of the GNU make manual, which is also an excellent tutorial.