nmake

How similar/different are gnu make, microsoft nmake and posix standard make?

时光毁灭记忆、已成空白 提交于 2019-11-29 11:31:38
问题 How similar/different are gnu make, microsoft nmake and posix standard make? Obviously there's things like "which OS?", "which compiler?" and "which linker?", but I'm referring specifically to the syntax, semantics and command-line options of the makefiles themselves. If I write makefiles based on manuals for gnu make, what are the most important portability issues that I need to be aware of? 回答1: GNU Make and POSIX Make share a common core so that GNU Make understands makefiles intended for

makedepend equivalent for use with nmake?

守給你的承諾、 提交于 2019-11-29 06:20:54
Just wondering if there is a 'makedepends' equivalent that ships with visual studio that I can use with nmake. Does anyone know? You can use the /showIncludes switch to cl.exe to list the headers #include d by your source files. Nested includes are indicated by indentation with spaces. You can also turn on syntax-checking mode with the /Zs switch, to increase speed and avoid creation of .obj files. If you have Perl and a version of uniq (e.g. from GnuWin32 ) installed, the following one-liner will dump the list of unique headers used by myfile.cpp : cl /Zs /showIncludes /EHsc myfile.cpp | perl

How to organize the project tree for a C++ project using nmake?

久未见 提交于 2019-11-29 06:17:27
问题 There seems to be two major conventions for organizing project files and then many variations. Convention 1: High-level type directories, project sub-directories For example, the wxWidgets project uses this style: /solution /bin /prj1 /prj2 /include /prj1 /prj2 /lib /prj1 /prj2 /src /prj1 /prj2 /test /prj1 /prj2 Pros: If there are project dependencies, they can be managed from a single file Flat build file structure Cons: Since test has its own header and cpp files, when you generate the unit

Exporting DLL C++ Class , question about .def file

随声附和 提交于 2019-11-29 05:17:58
I want to use implicit linking in my project , and nmake really wants a .def file . The problem is , that this is a class , and I don't know what to write in the exports section . Could anyone point me in the right direction ? The error message is the following : NMAKE : U1073: don't know how to make 'DLLCLASS.def' P.S: I'm trying to build using Windows CE Platform Builder . You can always find the decorated name for the member function by using dumpbin /symbols myclass.obj in my case class A { public: A( int ){} }; the dumpbin dump showed the symbol ??0A@@QAE@H@Z (public: __thiscall A::A(int)

What is the default generator for CMake in Windows?

爱⌒轻易说出口 提交于 2019-11-29 03:12:19
When running CMake on one PC, CMake generates NMake files by default. On another, it generates a Visual Studio project. I know I can override the default by adding -G "NMake Makefiles" to the end of my CMake statement, but I want to know why it defaults to Visual Studio projects on one and NMake files on another. The following is from the CMake Source (version 2.8.4: cmake.cxx: starting line 2039): // Try to find the newest VS installed on the computer and // use that as a default if -G is not specified std::string vsregBase = "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\"; struct

How to install PyQt5 on Windows?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 17:53:12
When I try installing the PyQt5 on Windows using the command python configure.py I get this error: Error: Make sure you have a working Qt qmake on your PATH. I got the pyQt5 from PyQt5 Download . How can I install PyQt5? Update: I installed Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) from the Qt Download page and now I have this error: Querying qmake about your Qt installation... Determining the details of your Qt installation... Error: Failed to determine the detail of your Qt installation. Try again using the --verbose flag to see more detail about the problem. And when I execute the

How do I utilise all the cores for nmake?

杀马特。学长 韩版系。学妹 提交于 2019-11-28 16:50:07
I just got a new quad core computer and noticed that nmake is only using 1 process. I used to use make which had the switch -j4 for launching 4 processes. What is the nmake equivalent? [edit] Based on the information below I have been able to add a command to my qmake project file: QMAKE_CXXFLAGS += /MP Which effectively did it for me. Many thanks. According to MSDN , there's no such option for nmake . You can however make the compiler build multiple files in parallel by using the /MP option with the VC++ command line compiler and passing multiple files at the same time: > cl /MP a.cpp b.cpp c

Can't figure out how to read file from nmake

陌路散爱 提交于 2019-11-28 09:41:49
问题 I am doing something like this: all: @SET /p filecontent= < somefile.txt @echo %filecontent% However the filecontent variable does not seem to hold the contents of the file somefile.txt . 回答1: Simply ensure somefile.txt is in acceptable nmake syntax, and then !include it. Thus: c:>type somefile.txt PASSWORD=secret c:>type makefile !INCLUDE somefile.txt !MESSAGE Password is [$(PASSWORD)] c:>nmake -nologo Password is [secret] 回答2: It is possible to read a file that is not a valid nmake file

Running a program/script from QMake

自作多情 提交于 2019-11-27 22:55:18
We have a fairly large code-base. The vast majority of the code is compiled using qmake to produce the makefiles. However, there are some sub-projects that get produced by running batch files or running other programs. I'd like to be able to have everything compiled using qmake, but I can't figure out how to get qmake to simply run a script. One thing that I've tried is using QMAKE_EXTRA_TARGETS in my pro file, like so: TEMPLATE = lib SOURCES = placeholder.cpp CONFIG += no_link staticlib batch_runner.target = placeholder.cpp batch_runner.commands = my_batch_file.bat QMAKE_EXTRA_TARGETS = batch

Exporting DLL C++ Class , question about .def file

核能气质少年 提交于 2019-11-27 22:45:44
问题 I want to use implicit linking in my project , and nmake really wants a .def file . The problem is , that this is a class , and I don't know what to write in the exports section . Could anyone point me in the right direction ? The error message is the following : NMAKE : U1073: don't know how to make 'DLLCLASS.def' P.S: I'm trying to build using Windows CE Platform Builder . 回答1: You can always find the decorated name for the member function by using dumpbin /symbols myclass.obj in my case