Questions tagged [precompiler]
42 questions
1
vote
1 answer
rake assets:precompile fails on windows machine
I have a similar problem as reported many times, e.g. here: rake assets:precompile RAILS_ENV=production not working as required
My setup is as follows:
-- rails 5.1
-- any application (e.g. an empty one, just generated the app, bundle, rake…

Uli
- 11
- 1
1
vote
1 answer
use cmake add_definition value in fortran
I'd like to include a flag such as -DMY_FLAG=ONETWOTHREE in the CMake call, i.e. make .. -DMY_FLAG=ONETWOTHREE, and get the value of MY_FLAG in the fortran code. I'm using add_definitions("-DMY_FLAG=${MY_FLAG}") to pass MY_FLAG to make.
Currently,…

raf
- 535
- 4
- 18
1
vote
1 answer
Sharing Constants Between Cocoa and Cocoa-Touch apps
I have a class that I want to share between two different applications. The only real difference is the base framework it references. Cocoa imports and of course Cocoa-Touch imports . I would like to use a precompiler directive to check what I…

Rob
- 4,149
- 5
- 34
- 48
1
vote
0 answers
MT Quartz Magento Theme Less CSS Precompiler Issue
I'm using the MT Quartz magento theme. It uses the LESS css pre-compiler. The theme settings have an option to change the theme colours. These get written to a file on the file system design_default.less. There is another file at the same level…

vagu0071
- 23
- 4
1
vote
3 answers
SASS workflow for easier CLI debugging via Grunt
Here is my workflow I have 20 scss files that are imported into one 'app.scss' see below
@import
"base/normalize",
"base/foundation/functions",
"base/settings",
"app/functions",
"app/mixins",
"app/components/icons",
etc
the SASS folder structure…

nolawi
- 4,439
- 6
- 22
- 45
1
vote
2 answers
Using C Functions in preprocessor statements
I'm programming a c++ application on an stm32f4 chip which has several IOs to control. One of my colleagues suggested to make preprocessor statements to all of these IOs to make the code more readable.
For example:
#define FAN_ON …

user3379420
- 11
- 1
1
vote
2 answers
gcc compilation leaves numerous temp files
I'm using Red Hat Enterprise Linux 5.4 (it's the latest version) and using gcc 4.1.2 to compile my C project. I've noticed that after the compilation, I get numerous tp* files with 0 bytes each inside the sources folder. I'm using the following…

Miguel Rentes
- 994
- 1
- 10
- 27
1
vote
1 answer
Sass and Compass weird css errors after install
I installed compass and I can't compile to css properly. I have no idea what's causing it. Even thou stackoverflow is asking me to write more.
Installed scout.
Created simple css and html file.
Tried to compile css file.
Got error.
Could not find…

user2030157
- 15
- 1
- 3
1
vote
3 answers
Making use of CSS vs Sass (SCSS) - base class issues and redundency
I'm trying to clean up my CSS to be cleaner by using SCSS.
Standard CSS:
.dark-hr,
.light-hr {
width: 100%;
height: 1px;
margin: 15px 0px;
}
.dark-hr {
background-color: #595959;
}
.light-hr {
background-color: #cccccc;
}
vs…

DynamicDan
- 425
- 4
- 12
0
votes
0 answers
Precompiler check if class exists in Framework
I have a framework written in Swift and it has 2 versions. In 1st version it has class “NewClass” and in 2nd it has NOT.
Now when I import that class into my Objective-C project I need to check if that “NewClass” exists or not. If yes - then compile…

iamalizade
- 228
- 1
- 5
0
votes
0 answers
GCC Compiler, macro test causes compiler error
When setting up the GPIO on my STM32 Processor I want to check and make sure two different GPIOs are on the same port.
So, I added this macro:
#if (USART2_TX_GPIO_Port != USART2_RX_GPIO_Port)
#error "USART TX and RX on different ports!!!"
#endif
It…

MattR
- 85
- 3
0
votes
1 answer
Debug what #DEFINE resolves to before compilation
I need to see what is happeing under the hood before compilation. How? The following is an example out of many...
I am compiling the Intel Math Lib and that works fine. There are different options to get it running that influence how symbols are…

raoulsson
- 14,978
- 11
- 44
- 68
0
votes
1 answer
Is there any way to avoid pro*c precompiler?
I’ve been trying to use openSSL on Oracle tuxedo but its pro-c compiler keep making error.
People says pro*c pre-compiler can’t handle code in c99 syntax.
I’d like to know how my code can avoid pre-compiler.
According to openssl github issue…

GomTang
- 1
0
votes
1 answer
How to replace Preprocessor directives with C# code,Alternative for preprocessor directives
We are using preprocessor directives like trail and licensed, so we have two installers for trail and licensed. When the user want to upgrade from trail to licensed they have to uninstall trail and install Licensed and vice versa. Now we want to…

Gani.one
- 53
- 1
- 5
0
votes
1 answer
How to condition module import in Objective-C to some minimal OS version?
I am developing a library in Objective-C that targets all the Apple OSs (macos, ios, watchos, tvos). Some of the Apple APIs I use only available starting at a certain version of an OS.
I do guard my interface definitions and OS version dependent…

AKornich
- 682
- 5
- 16