mingw

Is there any reason why not to strip symbols from executable?

有些话、适合烂在心里 提交于 2020-06-24 22:31:32
问题 A couple of years ago I asked a question how to reduce size of executables. Using MinGW compiler, stripping symbols ( -s option) helped to reduce 50%+ of the size. Why the stripping is not default - is there any good reason why NOT to strip the symbols in some scenarios then? I'd like to understand it more deeply: today, I just vaguely know that symbols are involved in linking library. Are they needed in executable and do they affect executing speed? 回答1: MinGW is an acronym for "Minimalist

Is there any reason why not to strip symbols from executable?

这一生的挚爱 提交于 2020-06-24 22:30:41
问题 A couple of years ago I asked a question how to reduce size of executables. Using MinGW compiler, stripping symbols ( -s option) helped to reduce 50%+ of the size. Why the stripping is not default - is there any good reason why NOT to strip the symbols in some scenarios then? I'd like to understand it more deeply: today, I just vaguely know that symbols are involved in linking library. Are they needed in executable and do they affect executing speed? 回答1: MinGW is an acronym for "Minimalist

How to set up pthreads on windows?

僤鯓⒐⒋嵵緔 提交于 2020-06-24 13:59:22
问题 I found an implementation for pthreads on Windows here, but I couldn't get it to work right. Can anyone help me to install pthreads ? Like where to put DLLs, .lib, and .h files? Also, as an environment I'm not using Visual Studio, but Codeblocks with Mingw. I usually develop on Linux, but this project has to be on Windows, and I've already got some code implemented using pthreads, so I don't want to use Windows Threads from 'windows.h'. 回答1: The .dll can go in any directory listed in your

How to set up pthreads on windows?

浪尽此生 提交于 2020-06-24 13:59:05
问题 I found an implementation for pthreads on Windows here, but I couldn't get it to work right. Can anyone help me to install pthreads ? Like where to put DLLs, .lib, and .h files? Also, as an environment I'm not using Visual Studio, but Codeblocks with Mingw. I usually develop on Linux, but this project has to be on Windows, and I've already got some code implemented using pthreads, so I don't want to use Windows Threads from 'windows.h'. 回答1: The .dll can go in any directory listed in your

bash: msbuild: command not found

对着背影说爱祢 提交于 2020-06-12 07:25:29
问题 Having a problem with adding msbuild to git bash for Win10 already added msbuild to system vars and to path too CMD msbuild calls fine already tried this solution 回答1: If you want to refer to an environment variable you need to prefix it with $ , like $msbuild . I'm not sure that is the best idea though, nor modifying the system path: what if you have different versions of msbuild? Anyway, your real problem is that the command isn't msbuild , it is MSBuild.exe . And a convenient way of adding

Linking of IPP 2018 with mingw

荒凉一梦 提交于 2020-06-08 06:40:59
问题 I am trying to use the 2018 version of Intel IPP with mingw, and I have trouble linking the .lib that Intel provides to my program. The program I am compiling is the IPP example at https://software.intel.com/en-us/ipp-dev-guide-building-intel-ipp-applications Here is the makefile: HDIR = "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.1.156\windows\ipp\include" LDADD = "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.1.156\windows\ipp\lib\intel64_win"

Linking of IPP 2018 with mingw

久未见 提交于 2020-06-08 06:38:06
问题 I am trying to use the 2018 version of Intel IPP with mingw, and I have trouble linking the .lib that Intel provides to my program. The program I am compiling is the IPP example at https://software.intel.com/en-us/ipp-dev-guide-building-intel-ipp-applications Here is the makefile: HDIR = "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.1.156\windows\ipp\include" LDADD = "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.1.156\windows\ipp\lib\intel64_win"

How to link MinGW (gcc) and TBB

穿精又带淫゛_ 提交于 2020-06-01 06:25:28
问题 I am trying to compile my TBB program using MinGW. I know that TBB is installed on my machine correctly because it compiles just fine in Visual Studio. Do I have to do something more to tell MinGW where TBB is installed? Or is just linking the library all that is needed? I am getting these error, when trying to compile using gcc. C:\Users\Owner\Desktop\New folder\OpenMP vs TBB>make g++ -LC:\tbb\tbb\lib\intel64\vc14 -O3 -o pps avl.o main.o parPlaneSweep.o -fopenmp -ltbb c:/mingw/bin/../lib/gcc

CMake Error : execution of make failed on Windows

久未见 提交于 2020-05-13 04:44:10
问题 I am getting errors when trying to build nanomsg project in Windows 7: cmake .. -- Building for: NMake Makefiles -- The C compiler identification is GNU 4.7.1 -- Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe CMake Error: Generator: execution of make failed. Make command was: "nmake" "/NOLOGO" "cmTC_5d837\fast" -- Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe -- broken CMake Error at C:/Program Files (x86)/cmake-3.9.4

Git和Github的基本操作

倾然丶 夕夏残阳落幕 提交于 2020-05-08 08:28:36
什么是GIT? Git是一个免费、开源的版本控制软件,目前世界上最先进的分布式版本控制系统(没有之一) 什么是版本控制系统? 版本控制是一种记录一个或若干个文件内容变化,以便将来查阅特定版本修订情况得系统。 系统具体功能     记录文件的所有历史变化     随时可恢复到任何一个历史状态     多人协作开发或修改     错误恢复 版本控制的工具:   - svn 集中式版本控制系统   - git 分布式版本控制系统 集中式vs分布式 CVS及SVN都是集中式的版本控制系统,而Git是分布式版本控制系统,集中式和分布式版本控制系统有什么区别呢: 集中式版本控制系统,版本库是集中存放在中央服务器的,而干活的时候,用的都是自己的电脑,所以要先从中央服务器取得最新的版本,然后开始干活,干完活了,再把自己的活推送给中央服务器。 中央服务器就好比是一个图书馆,你要改一本书,必须先从图书馆借出来,然后回到家自己改,改完了,再放回图书馆。 集中式版本控制系统最大的毛病就是必须联网才能工作。 分布式版本控制系统根本没有“中央服务器”,每个人的电脑上都是一个完整的版本库,这样,你工作的时候,就不需要联网了,因为版本库就在你自己的电脑上。 既然每个人电脑上都有一个完整的版本库,那多个人如何协作呢?比方说你在自己电脑上改了文件A,你的同事也在他的电脑上改了文件A,这时