compilation

Sass importing without compiling

霸气de小男生 提交于 2019-12-04 03:17:46
In sass, the way one imports is by using the import command. I will use Zurb Foundation as an example: @import "foundation"; This will then import the whole foundation.scss file and all it's relative imports to the top of the current file. This means that the entire foundation.scss file will be compiled and outputted along with the contents of the file to the final <name here>.css file. Though this is good for customisation, such as custom colors and spacing, it becomes a pain when creating libraries and distributing these libraries as individual droplets for other people to slot into their

WINDOWS.H already included error

五迷三道 提交于 2019-12-04 03:05:46
I get an error when trying to compile a small c++ program Error 87 fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxv_w32.h 16 I made sure that the windows.h was not included in any of the project files I have. I am using a visual studio 2008 IDE Any reason why ? reason why is because something is including Windows.h: the compiler is not lying to you. Go to project Properties->Configuration Properties->C/C++->Advanced and set Show Includes to Yes. Then build, and the compiler will show you a

Compiling VLC on Linux: Error couldnt find Lua

牧云@^-^@ 提交于 2019-12-04 02:58:42
I am trying to compile VLC for Linux. When I run the configure script, I am getting the error message configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error. I have lua on my system. I ran lua -v and got Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio whereis lua gives /usr/bin/lua /usr/lib/lua /usr/share/lua /usr/share/man/man1/lua.1.gz Which looks to be a standard location. Any ideas on why configure isn't picking up lua? As mentioned by Not_a_Golfer, you need Lua header

Compiling Python to a static lib and using pythoncore.lib

狂风中的少年 提交于 2019-12-04 02:56:13
I'm trying to build Python 2.7 as a static single .lib file. I've already made the following changes to the Python source code: Change to "Release" mode. Change all DLL projects to Static library (.lib) and set runtime library to /MT Add preprocessor definition Py_NO_ENABLE_SHARED to python and pythoncore I've managed to compile the pythoncore project to pythoncore.lib (about 11mb size), but when trying to compile the python project I get the following linking errors: error LNK2019: unresolved external symbol __Py_ActivateActCtx referenced in function __PyImport_GetDynLoadFunc C:\Python-2.7.3

Why do common C compilers include the source filename in the output?

穿精又带淫゛_ 提交于 2019-12-04 02:41:39
I have learnt from this recent answer that gcc and clang include the source filename somewhere in the binary as metadata, even when debugging is not enabled. I can't really understand why this should be a good idea. Besides the tiny privacy risks, this happens also when one optimizes for the size of the resulting binary ( -Os ), which looks inefficient. Why do the compilers include this information? cyphar The reason why GCC includes the filename is mainly for debugging purposes, because it allows a programmer to identify from which source file a given symbol comes from as (tersely) outlined

Build OpenSSL on Linux with -g for debugging

和自甴很熟 提交于 2019-12-04 02:41:34
I have a segfault coming from OpenSSL (specifically SSL_read ) that I'd like to debug. I think the best step to take here is to build the library myself with debug symbols so I can step into the function and see the command it's happening on. It's not clear to me how to a) build the library myself and b) hack the makefile to give me the debug symbols. Does anyone have experience doing this with this specific library, or have general guidelines on this sort of build and modify approach? Got this error: ./config -d Operating system: x86_64-whatever-linux2 This system (debug-linux-x86_64) is not

Choose a C binary according to the enviroment

久未见 提交于 2019-12-04 02:20:10
问题 I have compiled my code with specific flags (-Os, -O2, -march=native and their combinations) in order to produce a faster execution time. But my problem is that I don't run always in the same machine (because in my lab there are several different machines). Sometimes I run within a MacOS, or within a Linux (in both cases with different OS versions). I wonder if there is a way to determine which binary will be run depending on the environment where the binary will run (I mean cache size, cpu

Compile wix project using “Any CPU” instead of “X86”

戏子无情 提交于 2019-12-04 02:00:55
When I compile a wix project, and wix launch the compilation via MSbuild of all the existing projects, can I use "Any CPU" instead of "X86" or "64 bit" ? If not, how can I compile the projects using "Any CPU" ? Isaiah4110 If your question is whether you can compile WIXPROJ for Any CPU then the answer is no. "WiX projects will not be built when building the 'Any CPU' platform because Windows Installer packages are CPU-specific. " The TargetPlatform setting in your WIXPROJ defines the way Windows Installer treats folder variables, registries and GAC etc. For example, the setup project will use

recursive dynamic template compilation in angular2

孤人 提交于 2019-12-04 01:50:34
问题 I've based some of my work on the same problem described in here: dynamic template to compile dynamic Component with Angular 2.0 How can I use/create dynamic template to compile dynamic Component with Angular 2.0? The working plunker described in the question above can be found here. The problem occours if the dynamic-detail tries to create another dynamic view that uses dynamic-detail in the template. If i try to do that i get the following exception.: 'dynamic-detail' is not a known element

How can I auto compile my HAML files into HTML files in a tiny project that doesn't run on RoR?

北战南征 提交于 2019-12-04 01:44:59
I have only today started playing with compass and haml . While I am quite familiar with the way sass works and I get the idea of what compass is for sass and how to use it, I've hit a little bit of a road block when it comes to using haml efficiently. Of course I am hoping that someone here already knows the answer to my problem and can give me a little jump start into haml . Here is what I'd like to accomplish: Auto compile my HAML files when I save them. The project however is just a tiny static site (couple of pages) to build up a template set for a later integration into the