Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: triplet or what ? Pin
Vaclav_31-Mar-19 7:27
Vaclav_31-Mar-19 7:27 
GeneralRe: triplet or what ? Pin
k505431-Mar-19 8:38
mvek505431-Mar-19 8:38 
AnswerRe: triplet or what ? Pin
Randor 31-Mar-19 8:34
professional Randor 31-Mar-19 8:34 
GeneralRe: triplet or what ? Pin
k505431-Mar-19 8:45
mvek505431-Mar-19 8:45 
GeneralRe: triplet or what ? Pin
Randor 31-Mar-19 9:04
professional Randor 31-Mar-19 9:04 
GeneralRe: triplet or what ? Pin
Vaclav_31-Mar-19 16:20
Vaclav_31-Mar-19 16:20 
GeneralRe: triplet or what ? Pin
Randor 31-Mar-19 17:21
professional Randor 31-Mar-19 17:21 
GeneralRe: triplet or what ? Pin
leon de boer1-Apr-19 0:49
leon de boer1-Apr-19 0:49 
If your coming thru a makefile you can pick the compiler OS inside the makefile I always do it because
I need to swing between RM and DEL and the directory slash in the makefile
You can change the compiler binary in that conditional as well.

ifeq ($(OS), Windows_NT)
	#WINDOWS USE THESE DEFINITIONS
	RM = -del /q /f
	SLASH = \\
else
	#LINUX USE THESE DEFINITIONS
	RM = -rm -f
	SLASH = /
endif

So ......
ifeq ($(OS), Windows_NT)
	#WINDOWS USE THESE DEFINITIONS
	RM = -del /q /f
	SLASH = \\
    CC = arm-none-eabi-
else
	#LINUX USE THESE DEFINITIONS
	RM = -rm -f
	SLASH = /
    CC = arm-linux-gnueabi-
endif

In vino veritas


modified 1-Apr-19 8:25am.

QuestionCombination or inheritance Pin
元昊 潘31-Mar-19 5:04
元昊 潘31-Mar-19 5:04 
AnswerRe: Combination or inheritance Pin
leon de boer31-Mar-19 6:12
leon de boer31-Mar-19 6:12 
SuggestionRe: Combination or inheritance Pin
David Crow1-Apr-19 3:31
David Crow1-Apr-19 3:31 
Questioni really need help with this Pin
Member 1420332729-Mar-19 5:13
Member 1420332729-Mar-19 5:13 
GeneralRe: i really need help with this Pin
Richard MacCutchan29-Mar-19 5:58
mveRichard MacCutchan29-Mar-19 5:58 
AnswerRe: i really need help with this Pin
Victor Nijegorodov29-Mar-19 6:43
Victor Nijegorodov29-Mar-19 6:43 
GeneralRe: i really need help with this Pin
Member 142033272-Apr-19 4:14
Member 142033272-Apr-19 4:14 
QuestionRe: i really need help with this Pin
David Crow29-Mar-19 9:24
David Crow29-Mar-19 9:24 
AnswerRe: i really need help with this Pin
Member 1420332730-Mar-19 3:52
Member 1420332730-Mar-19 3:52 
GeneralRe: i really need help with this Pin
k505430-Mar-19 4:48
mvek505430-Mar-19 4:48 
GeneralRe: i really need help with this Pin
Member 142033272-Apr-19 4:13
Member 142033272-Apr-19 4:13 
SuggestionRe: i really need help with this Pin
David Crow30-Mar-19 5:33
David Crow30-Mar-19 5:33 
AnswerRe: i really need help with this Pin
Gerry Schmitz29-Mar-19 10:40
mveGerry Schmitz29-Mar-19 10:40 
AnswerRe: i really need help with this Pin
Vaclav_1-Apr-19 15:43
Vaclav_1-Apr-19 15:43 
QuestionPutting declared const into a print statement Pin
SEmmett28-Mar-19 10:45
SEmmett28-Mar-19 10:45 
AnswerRe: Putting declared const into a print statement Pin
k505428-Mar-19 11:01
mvek505428-Mar-19 11:01 
AnswerRe: Putting declared const into a print statement Pin
CPallini28-Mar-19 11:06
mveCPallini28-Mar-19 11:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.