Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
Eugen Podsypalnikov30-Aug-10 4:30
Eugen Podsypalnikov30-Aug-10 4:30 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin30-Aug-10 5:24
funwithdolphin30-Aug-10 5:24 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
Eugen Podsypalnikov30-Aug-10 5:29
Eugen Podsypalnikov30-Aug-10 5:29 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 3:51
funwithdolphin31-Aug-10 3:51 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 21:53
funwithdolphin31-Aug-10 21:53 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 23:24
funwithdolphin31-Aug-10 23:24 
QuestionReplace exe in Install shield Pin
raju_shiva30-Aug-10 0:33
raju_shiva30-Aug-10 0:33 
AnswerRe: Replace exe in Install shield Pin
ThatsAlok30-Jun-11 23:59
ThatsAlok30-Jun-11 23:59 
QuestionHow to achieve pushbutton type effect using bitmaps Pin
sayonee29-Aug-10 22:23
sayonee29-Aug-10 22:23 
AnswerRe: How to achieve pushbutton type effect using bitmaps Pin
Sauro Viti30-Aug-10 6:43
professionalSauro Viti30-Aug-10 6:43 
QuestionMultiple includes Pin
Shy Agam29-Aug-10 21:49
Shy Agam29-Aug-10 21:49 
AnswerRe: Multiple includes Pin
Cedric Moonen29-Aug-10 22:38
Cedric Moonen29-Aug-10 22:38 
AnswerRe: Multiple includes Pin
CPallini29-Aug-10 22:46
mveCPallini29-Aug-10 22:46 
GeneralRe: Multiple includes Pin
Shy Agam29-Aug-10 23:06
Shy Agam29-Aug-10 23:06 
GeneralRe: Multiple includes Pin
Cedric Moonen29-Aug-10 23:53
Cedric Moonen29-Aug-10 23:53 
GeneralRe: Multiple includes [modified] Pin
Shy Agam30-Aug-10 0:10
Shy Agam30-Aug-10 0:10 
GeneralRe: Multiple includes Pin
Cedric Moonen30-Aug-10 0:51
Cedric Moonen30-Aug-10 0:51 
GeneralRe: Multiple includes Pin
Richard MacCutchan30-Aug-10 2:39
mveRichard MacCutchan30-Aug-10 2:39 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 9:42
Paul Michalik30-Aug-10 9:42 
GeneralRe: Multiple includes Pin
Richard MacCutchan30-Aug-10 21:50
mveRichard MacCutchan30-Aug-10 21:50 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 23:30
Paul Michalik30-Aug-10 23:30 
GeneralRe: Multiple includes Pin
Richard MacCutchan31-Aug-10 0:41
mveRichard MacCutchan31-Aug-10 0:41 
GeneralRe: Multiple includes Pin
Shy Agam30-Aug-10 21:20
Shy Agam30-Aug-10 21:20 
GeneralRe: Multiple includes Pin
Emilio Garavaglia30-Aug-10 20:18
Emilio Garavaglia30-Aug-10 20:18 
AnswerRe: Multiple includes [modified] Pin
Shy Agam30-Aug-10 22:45
Shy Agam30-Aug-10 22:45 
It appears you guys were right. This is a linker issue.
Eclipse lets you specify a reference to your other project.
Being a devoted Visual Studio for .NET developer, I guess I assumed adding the reference was suffice.

However, I've found the specific settings needed for linking the library.

For future references to this post:
1. Open the project's settings.
2. Expand "C/C++ Build" and select "Settings".
3. Under "Tool Settings" expand "GCC C++ Linker" and select "Libraries".
4. Add the name of the library on the top box, and the path to its files on the bottom one.
(Note that the path to the library should be the project's Debug directory)


So now the project gets compiled, and the linker no longer whines about not finding the library.
However I get some new linking errors.
The new console output is as follows:

make all
Building target: Maple
Invoking: GCC C++ Linker
g++ -L"/LibraryPath/Debug" -o"Maple" ./Source/Maple.o -lCursesPlus
/LibraryPath/Debug/libCursesPlus.so: undefined reference to `CursesPlus::CursesPlusEngine::initialized'
.
.
.
collect2: ld returned 1 exit status
make: *** [Maple] Error 1



The vertical three dots hold place for a series of "undefined reference to..." errors, which are similar to the first error, but specify a different member of CursesPlusEngine.

And to make it clear: Maple is my main executable project, and libCursesPlus is my library project.

--Edit--
All of the above members are defined as private static in their corresponding header files.

modified on Tuesday, August 31, 2010 4:56 AM

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.