Click here to Skip to main content
15,850,359 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Password recovery for .LIB file Pin
Stuart Dootson15-Sep-09 7:56
professionalStuart Dootson15-Sep-09 7:56 
GeneralRe: Password recovery for .LIB file Pin
DallasProgrammer15-Sep-09 9:27
DallasProgrammer15-Sep-09 9:27 
GeneralRe: Password recovery for .LIB file Pin
Cedric Moonen15-Sep-09 9:45
Cedric Moonen15-Sep-09 9:45 
GeneralRe: Password recovery for .LIB file Pin
«_Superman_»15-Sep-09 20:38
professional«_Superman_»15-Sep-09 20:38 
QuestionRe: Password recovery for .LIB file Pin
David Crow15-Sep-09 10:35
David Crow15-Sep-09 10:35 
AnswerRe: Password recovery for .LIB file Pin
Chris Losinger15-Sep-09 13:06
professionalChris Losinger15-Sep-09 13:06 
QuestionRe: Password recovery for .LIB file Pin
Maximilien15-Sep-09 10:42
Maximilien15-Sep-09 10:42 
QuestionQuestion on g++ compiler options Pin
minkowski15-Sep-09 7:23
minkowski15-Sep-09 7: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 8:06
professionalStuart Dootson15-Sep-09 8:06 
GeneralRe: Question on g++ compiler options Pin
minkowski15-Sep-09 23:47
minkowski15-Sep-09 23:47 
GeneralRe: Question on g++ compiler options Pin
Stuart Dootson16-Sep-09 0:33
professionalStuart Dootson16-Sep-09 0:33 
GeneralRe: Question on g++ compiler options Pin
minkowski16-Sep-09 1:29
minkowski16-Sep-09 1:29 
GeneralRe: Question on g++ compiler options Pin
Stuart Dootson16-Sep-09 1:37
professionalStuart Dootson16-Sep-09 1:37 
GeneralRe: Question on g++ compiler options Pin
minkowski16-Sep-09 2:00
minkowski16-Sep-09 2:00 
QuestionHow can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 5:31
Neil Urquhart15-Sep-09 5:31 
AnswerRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Code-o-mat15-Sep-09 5:48
Code-o-mat15-Sep-09 5:48 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 7:02
Neil Urquhart15-Sep-09 7:02 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 7:09
Neil Urquhart15-Sep-09 7:09 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Code-o-mat15-Sep-09 7:13
Code-o-mat15-Sep-09 7:13 
AnswerRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog [modified] Pin
Moak15-Sep-09 15:09
Moak15-Sep-09 15:09 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 21:04
Neil Urquhart15-Sep-09 21:04 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 21:57
Neil Urquhart15-Sep-09 21:57 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Moak16-Sep-09 0:21
Moak16-Sep-09 0:21 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart16-Sep-09 3:53
Neil Urquhart16-Sep-09 3:53 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Moak16-Sep-09 4:19
Moak16-Sep-09 4: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.