Click here to Skip to main content
15,886,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Password recovery for .LIB file Pin
Stuart Dootson15-Sep-09 6:56
professionalStuart Dootson15-Sep-09 6:56 
GeneralRe: Password recovery for .LIB file Pin
DallasProgrammer15-Sep-09 8:27
DallasProgrammer15-Sep-09 8:27 
GeneralRe: Password recovery for .LIB file Pin
Cedric Moonen15-Sep-09 8:45
Cedric Moonen15-Sep-09 8:45 
GeneralRe: Password recovery for .LIB file Pin
«_Superman_»15-Sep-09 19:38
professional«_Superman_»15-Sep-09 19:38 
QuestionRe: Password recovery for .LIB file Pin
David Crow15-Sep-09 9:35
David Crow15-Sep-09 9:35 
AnswerRe: Password recovery for .LIB file Pin
Chris Losinger15-Sep-09 12:06
professionalChris Losinger15-Sep-09 12:06 
QuestionRe: Password recovery for .LIB file Pin
Maximilien15-Sep-09 9:42
Maximilien15-Sep-09 9:42 
QuestionQuestion on g++ compiler options Pin
minkowski15-Sep-09 6:23
minkowski15-Sep-09 6:23 
Hi,

Am getting to grips with the g++ compiler...

I have my main cpp file containing the main function in

/home/alfred/Public/Test/

I have my header file in

/home/alfred/Public/Test/header/

I have my src file for the header in

/home/alfred/Public/Test/src/

I used the command

g++ -c -Wall -I/home/alfred/Public/Test/header/ myclass.cpp

to generate my myclass.o object file and then the archiver to create the library

ar rc mylib.a myclass.o

which was fine but now I am having problems compiling and linking the main.cpp file to get my exe. I am trying to use the command

g++ -L/home/alfred/Public/Test/src -I/home/alfred/Public/Test/header/ main.cpp -o a.out

but I am being returned the error

/tmp/ccmZLiDt.o: In function `main':
main.cppFrown | :( text+0x59): undefined reference to `myclass::myclass(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
collect2: ld returned 1 exit status


meaning that it cannot see the constructor for the class myclass. I thought the -L flag is to tell it where your library is which has the constructor definition? Ummm, am I getting confused with the -l flag?

Thanks for any information.

Smile | :)
AnswerRe: Question on g++ compiler options Pin
Stuart Dootson15-Sep-09 7:06
professionalStuart Dootson15-Sep-09 7:06 
GeneralRe: Question on g++ compiler options Pin
minkowski15-Sep-09 22:47
minkowski15-Sep-09 22:47 
GeneralRe: Question on g++ compiler options Pin
Stuart Dootson15-Sep-09 23:33
professionalStuart Dootson15-Sep-09 23:33 
GeneralRe: Question on g++ compiler options Pin
minkowski16-Sep-09 0:29
minkowski16-Sep-09 0:29 
GeneralRe: Question on g++ compiler options Pin
Stuart Dootson16-Sep-09 0:37
professionalStuart Dootson16-Sep-09 0:37 
GeneralRe: Question on g++ compiler options Pin
minkowski16-Sep-09 1:00
minkowski16-Sep-09 1:00 
QuestionHow can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 4:31
Neil Urquhart15-Sep-09 4:31 
AnswerRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Code-o-mat15-Sep-09 4:48
Code-o-mat15-Sep-09 4:48 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 6:02
Neil Urquhart15-Sep-09 6:02 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 6:09
Neil Urquhart15-Sep-09 6:09 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Code-o-mat15-Sep-09 6:13
Code-o-mat15-Sep-09 6:13 
AnswerRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog [modified] Pin
Moak15-Sep-09 14:09
Moak15-Sep-09 14:09 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 20:04
Neil Urquhart15-Sep-09 20:04 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 20:57
Neil Urquhart15-Sep-09 20:57 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Moak15-Sep-09 23:21
Moak15-Sep-09 23:21 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart16-Sep-09 2:53
Neil Urquhart16-Sep-09 2:53 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Moak16-Sep-09 3:19
Moak16-Sep-09 3:19 

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.