Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionDetect screen resolution change Pin
manchukuo6-Jun-09 20:11
manchukuo6-Jun-09 20:11 
AnswerRe: Detect screen resolution change Pin
enhzflep6-Jun-09 23:16
enhzflep6-Jun-09 23:16 
GeneralRe: Detect screen resolution change Pin
Randor 6-Jun-09 23:29
professional Randor 6-Jun-09 23:29 
AnswerRe: Detect screen resolution change Pin
Randor 6-Jun-09 23:26
professional Randor 6-Jun-09 23:26 
AnswerRe: Detect screen resolution change Pin
molesworth6-Jun-09 23:36
molesworth6-Jun-09 23:36 
QuestionMP4 conversion in directshow Pin
john3466-Jun-09 9:43
john3466-Jun-09 9:43 
AnswerRe: MP4 conversion in directshow Pin
«_Superman_»6-Jun-09 19:29
professional«_Superman_»6-Jun-09 19:29 
QuestionBSTR with embedded NULL char ???? Pin
komofilms776-Jun-09 7:07
komofilms776-Jun-09 7:07 
AnswerRe: BSTR with embedded NULL char ???? Pin
Stuart Dootson6-Jun-09 9:09
professionalStuart Dootson6-Jun-09 9:09 
AnswerRe: BSTR with embedded NULL char ???? Pin
Wang Xinhong6-Jun-09 10:13
Wang Xinhong6-Jun-09 10:13 
QuestionVc 2008 application deployment Pin
Bilge Kaan6-Jun-09 5:35
Bilge Kaan6-Jun-09 5:35 
AnswerRe: Vc 2008 application deployment Pin
Randor 6-Jun-09 5:41
professional Randor 6-Jun-09 5:41 
GeneralRe: Vc 2008 application deployment Pin
Bilge Kaan6-Jun-09 5:48
Bilge Kaan6-Jun-09 5:48 

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.