Questions tagged [precompiler]

42 questions
0
votes
0 answers

How to enable iterative builds for C projects with precompiler switches?

I am developing C code for five different embedded controllers. In the past, I used to have a separate project for each of those controllers, yet the amount of shared code is around 98%. Therefore, I merged the all projects and abstracted the…
lukas
  • 1
  • 1
0
votes
1 answer

VStudio 2010 custom build issue

I use an Oracle precompiler for embedded SQL. I'm moving some code from VC++ 6.0 to VStudio 2010. I place database calls in a single source code module named "dbcalls.pc" - that gets passed to the precompiler which produces "dbcalls.cpp" which then…
0
votes
1 answer

Modifying gcc compilation to improve embedded Flash size

Introduction I am running out of Flash on my Cortex-M4 device. I analysed the code, and the biggest opportunity to reduce code size is simply in predefined constants. - Example const Struct option364[] = { { "String1", 0x4523, "String2" }, {…
John Burger
  • 3,662
  • 1
  • 13
  • 23
0
votes
1 answer

Unexpected end of file while looking for precompiler header file, when instrument my code through squish coco

error C1010: unexpected end of file while looking for precompiled header. Did you forgot to add #include "stdafx.h" to your source file? I have already added #include "stdafx.h" file in my .cpp file #include "stdafx.h" msmq() { int a; …
0
votes
2 answers

how to use Oracle Precompiler on mac

I have get stuck here few days,anyone who can help is grateful. The main question is about using oracle Precompiler on mac. I have tried step by step like this: 1.As Oracle official documents,I download three…
Alex Yu
  • 1
  • 1
0
votes
1 answer

how can I autoamate variable input array lists

I need to call a series of functions that require a list in an input array as following: 1st call to func: custom_type_t inarray = {1,2,3,4,5,6,7,8,9,10}; 2nd call to func: custom_type_t inarray = {11,12,13,14,15,16,17,18,19,20}; ... How can I…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
0
votes
0 answers

Makefile with Pro*C cannot find .c file

I have a directory of .pc files, and I am trying to compile to .o files with a Makefile. Oracle Pro*C precompiles the .pc files into .c. Then gcc compiles the .c files to .o. These are the rules: %.c: %.pc $(PROC) $(PROCPLSFLAGS) …
slec
  • 539
  • 6
  • 7
0
votes
1 answer

PlayMode tests and Unity Cloud Build

If I include Unity PlayMode tests inside of the Editor folder, they don't show up in Unity. Why is that? This is a problem for me because if I keep these tests right under my Assets directory, I get this error with Unity Cloud Build: error CS0246:…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
0
votes
2 answers

Does IF with a static false condition affect SQL Server performance?

DECLARE @false bit = 0; IF @false xxxx; In a stored procedure in SQL Server, if you declare a bit variable, set it to 0, and never change it, then when it's used in an IF, like IF @false, will the compiler simply leave out those blocks of code,…
uncaged
  • 597
  • 1
  • 5
  • 17
0
votes
1 answer

PostgreSQL why/when should I use ECPG

I've decided to use postgreSQL as database for a game project(C++). At the moment I'm using Oracle and it's Pro*C precompiler at work and heard that postgreSQL also has something similar called ECPG. It's also possible to access data from the the…
jeromintus
  • 367
  • 1
  • 5
  • 14
0
votes
1 answer

SASS compass compiler choking on multiple assignment @each loop

The following is an example from the SASS documentation: @each $animal, $color, $cursor in (puma, black, default), (sea-slug, blue, pointer), (egret, white, move) { .#{$animal}-icon { background-image: url('/images/#{$animal}.png'); …
Andrew Aponte
  • 560
  • 4
  • 17
0
votes
1 answer

error: pasting "Java_com_my_packagename_myClass_myMethod" and "(" does not give a valid preprocessing token

I'm writing a macro to make life easier by generating JNI method names, using the preprocessor: #define JNI_WRAPPER_METHOD (className, methodName, returnValue, PARAMS) \ JNIEXPORT returnValue JNICALL…
MM.
  • 4,224
  • 5
  • 37
  • 74
1 2
3