Click here to Skip to main content
15,888,202 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A problem, please help. Pin
Cedric Moonen4-Sep-09 7:12
Cedric Moonen4-Sep-09 7:12 
QuestionIn printer driver, how can I make sure DrvLoadFontFile is called? Pin
sashoalm4-Sep-09 3:29
sashoalm4-Sep-09 3:29 
QuestionTo get the Cursor position Pin
prithaa4-Sep-09 2:58
prithaa4-Sep-09 2:58 
AnswerRe: To get the Cursor position Pin
Iain Clarke, Warrior Programmer4-Sep-09 3:05
Iain Clarke, Warrior Programmer4-Sep-09 3:05 
AnswerRe: To get the Cursor position Pin
Cedric Moonen4-Sep-09 3:08
Cedric Moonen4-Sep-09 3:08 
GeneralRe: To get the Cursor position Pin
prithaa4-Sep-09 3:13
prithaa4-Sep-09 3:13 
GeneralRe: To get the Cursor position Pin
prithaa4-Sep-09 23:57
prithaa4-Sep-09 23:57 
QuestionUsing a static library (.a) build with gcc Pin
KNSetting4-Sep-09 2:00
KNSetting4-Sep-09 2:00 
Hi friends, I am trying linking a static library build with gcc (libjulius and libsent) with my code in c++ using vc++, I have made some tests.

I create an .a library with gcc, called fatorial.a and their include (fatorial.h) in a folder include so I create a main.c which call a function fatorial(int) which exists in file fatorial.h and their implementation in fatorial.a, so I can compile with cl like this:
cl /Iinclude main.c \link include\fatorial.a
this works fine.

Now with libjulius and libsent I have one folder called julius4 whose structure is showed below
the statics libraries is
julius4\libjulius\libjulius.a
julius4\libsent\ilbsent.a
theirs include are in
julius4\libjulius\include
julius4\libsent\include
there is an file julius4\libjulius\libjulius-config that when run with argument --libs return the requeried libs
and another julius4\libsent\libsent-config with the same objective, this libs are the libs which exists in libjulius.a and libsent.a respectively, when I run that scripts this returns -ljulius -lpthread -lsent -lwinmm -liconf -lm (-l is the option to search for the library in gcc).

so to compile my code main.cpp with gcc I call it like this:
gcc -Ijulius4\libjulius\include -Ijulius4\libsent\include main.c -o main.exe -Ljulius4\libjulius -Ljulius4\libsent -ljulius -lpthread -lsent -lwinmm -liconf -lm

and this works trying to map to cl I run like this
cl /Ijulius4\libjulius\include /Ijulius4\libsent\include main.c -o main.exe \link julius4\libjulius\libjulius.a julius4\libsent\libsent.a /DEFALTLIB:julius /DEFALTLIB:pthread /DEFALTLIB:sent /DEFALTLIB:winmm /DEFALTLIB:iconf /DEFALTLIB:m
but this find only the lib winmm and can not find iconf.lib m.lib...

Can anyone help me? Thanks.
AnswerRe: Using a static library (.a) build with gcc Pin
Stuart Dootson4-Sep-09 2:35
professionalStuart Dootson4-Sep-09 2:35 
AnswerRe: Using a static library (.a) build with gcc Pin
KNSetting4-Sep-09 6:59
KNSetting4-Sep-09 6:59 
GeneralRe: Using a static library (.a) build with gcc Pin
Stuart Dootson4-Sep-09 8:52
professionalStuart Dootson4-Sep-09 8:52 
GeneralRe: Using a static library (.a) build with gcc Pin
KNSetting8-Sep-09 1:29
KNSetting8-Sep-09 1:29 
Questionconverting if else ladder Pin
hrishiS4-Sep-09 1:32
hrishiS4-Sep-09 1:32 
AnswerRe: converting if else Pin
David Crow4-Sep-09 2:13
David Crow4-Sep-09 2:13 
GeneralRe: converting if else Pin
hrishiS4-Sep-09 2:22
hrishiS4-Sep-09 2:22 
QuestionRe: converting if else Pin
David Crow4-Sep-09 3:13
David Crow4-Sep-09 3:13 
GeneralRe: converting if else Pin
Iain Clarke, Warrior Programmer4-Sep-09 3:14
Iain Clarke, Warrior Programmer4-Sep-09 3:14 
GeneralRe: converting if else Pin
bob169724-Sep-09 4:17
bob169724-Sep-09 4:17 
AnswerRe: converting if else ladder Pin
Joe Woodbury4-Sep-09 8:22
professionalJoe Woodbury4-Sep-09 8:22 
Generalmemory leaks Pin
Agavriloaie Constantin3-Sep-09 23:06
Agavriloaie Constantin3-Sep-09 23:06 
GeneralRe: memory leaks Pin
iraclyKv4-Sep-09 2:13
iraclyKv4-Sep-09 2:13 
GeneralRe: memory leaks Pin
Agavriloaie Constantin4-Sep-09 3:29
Agavriloaie Constantin4-Sep-09 3:29 
GeneralRe: memory leaks Pin
David Crow4-Sep-09 2:17
David Crow4-Sep-09 2:17 
GeneralRe: memory leaks Pin
Agavriloaie Constantin4-Sep-09 3:25
Agavriloaie Constantin4-Sep-09 3:25 
GeneralRe: memory leaks Pin
David Crow4-Sep-09 3:43
David Crow4-Sep-09 3:43 

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.