Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Making GUI for Capicom Certificates Pin
UserNameless7-Jun-09 20:49
UserNameless7-Jun-09 20:49 
QuestionMemory Alignment - 32 bit Pin
Richard Andrew x647-Jun-09 17:16
professionalRichard Andrew x647-Jun-09 17:16 
AnswerRe: Memory Alignment - 32 bit Pin
Joe Woodbury7-Jun-09 17:25
professionalJoe Woodbury7-Jun-09 17:25 
GeneralRe: Memory Alignment - 32 bit Pin
Richard Andrew x647-Jun-09 19:33
professionalRichard Andrew x647-Jun-09 19:33 
Question(Potential) Memory Mapped File question Pin
swjam7-Jun-09 15:53
swjam7-Jun-09 15:53 
AnswerRe: (Potential) Memory Mapped File question Pin
Joe Woodbury7-Jun-09 17:31
professionalJoe Woodbury7-Jun-09 17:31 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam7-Jun-09 22:54
swjam7-Jun-09 22:54 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury8-Jun-09 5:28
professionalJoe Woodbury8-Jun-09 5:28 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam8-Jun-09 18:30
swjam8-Jun-09 18:30 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury8-Jun-09 19:34
professionalJoe Woodbury8-Jun-09 19:34 
GeneralRe: (Potential) Memory Mapped File question Pin
swjam9-Jun-09 0:56
swjam9-Jun-09 0:56 
GeneralRe: (Potential) Memory Mapped File question Pin
Joe Woodbury9-Jun-09 5:51
professionalJoe Woodbury9-Jun-09 5:51 
AnswerRe: (Potential) Memory Mapped File question Pin
ktm TechMan7-Jun-09 20:30
ktm TechMan7-Jun-09 20:30 
QuestionEdit the windows BCD using linux Pin
SalilJain7-Jun-09 9:23
SalilJain7-Jun-09 9:23 
QuestionRe: Edit the windows BCD using linux Pin
David Crow7-Jun-09 16:35
David Crow7-Jun-09 16:35 
QuestionRe: Edit the windows BCD using linux Pin
SalilJain7-Jun-09 16:41
SalilJain7-Jun-09 16:41 
AnswerRe: Edit the windows BCD using linux Pin
David Crow7-Jun-09 17:13
David Crow7-Jun-09 17:13 
GeneralRe: Edit the windows BCD using linux Pin
SalilJain7-Jun-09 22:44
SalilJain7-Jun-09 22:44 
GeneralRe: Edit the windows BCD using linux Pin
David Crow8-Jun-09 3:08
David Crow8-Jun-09 3:08 
QuestionLinux C++ Development difficult startup Pin
gotchagotcha7-Jun-09 0:19
gotchagotcha7-Jun-09 0:19 
AnswerRe: Linux C++ Development difficult startup Pin
Stuart Dootson7-Jun-09 1:17
professionalStuart Dootson7-Jun-09 1:17 
When you install Visual Studio, you are installing a lot of libraries for working with the OS and a lot of associated libraries. But if you install any other third-party libraries (like libxml++, for example), then you'll go through similar pain as with Linux development.

You either need to set environment variables to tell GCC where to find header and library files[^], or specify those directories as suitable GCC options in your makefile (or project file, if that's what Eclipse CDT uses).

For example - I program on Mac OS X (which is Unix underneath the GUI). I have the following environment variables defined to find Boost and the libraries I've installed with MacPorts (equivalent to Ubuntu's apt-get):

CPLUS_INCLUDE_PATH=/usr/local/include/boost-1_38/boost/tr1/tr1/:/usr/local/include/boost-1_38/:/opt/local/include:
LIBRARY_PATH=/usr/local/lib/:/opt/local/lib:


So, I've just added libxml++ (or libxmlxx as MacPorts calls it):

sudo port install libxmlxx
--->  Fetching libxmlxx
--->  Attempting to fetch libxml++-1.0.5.tar.bz2 from ftp://ftp.uk.FreeBSD.org/pub/FreeBSD/ports/distfiles/
--->  Attempting to fetch libxml++-1.0.5.tar.bz2 from ftp://ftp.uk.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/
--->  Attempting to fetch libxml++-1.0.5.tar.bz2 from http://ftp.gnome.org/pub/GNOME/sources/libxml++/1.0
--->  Verifying checksum(s) for libxmlxx
--->  Extracting libxmlxx
--->  Configuring libxmlxx
--->  Building libxmlxx
--->  Staging libxmlxx into destroot
--->  Installing libxmlxx @1.0.5_0
--->  Activating libxmlxx @1.0.5_0
--->  Cleaning libxmlxx


I know port installs into /opt/local. Sure enough, in /opt/local/include, I see a directory for libxml++-1.0. I now know that to use libxml++, I can add /opt/local/include/libxml++-1.0/ to CPLUS_INCLUDE_PATH or (and this is more likely) I can add the option -I/opt/local/include/libxml++-1.0/ to the gcc command-line.

g++ -c -O2 -I/opt/local/include/libxml++-1.0/ program-that-uses-libxml++.CC


If you use a makefile, then add -I/opt/local/include/libxml++-1.0/ to the CXXFLAGS make variable:

CXXFLAGS += -I/opt/local/include/libxml++-1.0/


That will add the include folder option to the gcc command line only when compiling C++ files.

HTH!

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

Questionerror C2065: HrFindExchangeGlobalAddressList : undeclared identifier Pin
Pardhu_M6-Jun-09 23:52
Pardhu_M6-Jun-09 23:52 
AnswerRe: error C2065: HrFindExchangeGlobalAddressList : undeclared identifier Pin
Stuart Dootson7-Jun-09 1:01
professionalStuart Dootson7-Jun-09 1:01 
QuestionHow can I get to what I want? Pin
maha39866-Jun-09 21:30
maha39866-Jun-09 21:30 
AnswerRe: How can I get to what I want? Pin
molesworth6-Jun-09 23:35
molesworth6-Jun-09 23:35 

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.