Using Poco and XCode

On someone's suggestion I have been checking out the Poco C++ libraries for a project.  I have built these libraries and I am ready to begin playing with them in xcode.  I have added the user include path /usr/local/include for my headers (and similar for libraries).
Anyway here is a simple code segment with a new command line tool project: (btw what are the code tags for this forum?)
#include <iostream>
#include <Poco/Util/Application.h>
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/Net/HTTPSClientSession.h>
#include <Poco/SharedPtr.h>
#include <Poco/Net/PrivateKeyPassphraseHandler.h>
#include <Poco/Net/InvalidCertificateHandler.h>
#include <Poco/Net/AcceptCertificateHandler.h>
#include <Poco/Net/Context.h>
#include <Poco/Net/SSLManager.h>
#include <Poco/Net/HTMLForm.h>
#include <Poco/URI.h>
int main (int argc, const char * argv[])
    // insert code here...
    std::cout << "Hello, World!\n";
    return 0;
This is just the basic hello world app XCode creates.  However when I compile I get all sorts of compile errors from the above includes.  The first one is a Symantic issue in stl_algobase.h (which I guess is an include of one of these includes) saying there is
no member named 'memmove' in namespace 'std'.
Anyway, I am confused.  If anyone has experience using this Poco stuff in xcode and how to set up projects so everything works correctly, please give me some pointers.

I was having the same issue with XCode 5 and resolved it by setting the path to be in "User Header Search Paths" and also updating my .cpp to the following:
#include <iostream>
#include "Poco/Util/Application.h"
#include "Poco/Net/HTTPRequest.h"
#include "Poco/Net/HTTPResponse.h"
#include "Poco/Net/HTTPSClientSession.h"
#include "Poco/SharedPtr.h"
#include "Poco/Net/PrivateKeyPassphraseHandler.h"
#include "Poco/Net/InvalidCertificateHandler.h"
#include "Poco/Net/AcceptCertificateHandler.h"
#include "Poco/Net/Context.h"
#include "Poco/Net/SSLManager.h"
#include "Poco/Net/HTMLForm.h"
#include "Poco/URI.h"
int main(int argc, const char * argv[])
//    // insert code here...
    std::cout << "Hello, World!\n";
    return 0;

Similar Messages

  • IFort and xcode array visualisation prospects

    Hi there,
    I'm new to the whole Mac platform, so please be patient! I am trying to use iFort and xcode together to compile a load of Fortran 95/2003 programs I have written for my PhD research. I was previously working on a PC, using Compaq Visual Fortran professional.
    With my previous setup, Microsoft visual studio was my IDE, and I was able to visualize arrays during debug by selecting the relevant array and clicking on the array visualizer to display a graphical representation of the array in either 2D or 3D. This was pretty handy, my research involves image processing tasks, which produce many intermediate steps which I do not necessarily want to output to file, but are useful to keep an eye on during debug to check things are processing properly (e.g. applying a sequence of filters and transforms).
    Is it possible to do something similar in xcode? What are my options for watching array content during debug, and what are the possibilities for graphical display?
    Many thanks
    Luke Spadavecchia

    xcode just runs the compiler and debugger. Look at your debugger documentation to see if it has visualization options.

  • Soft links and xcode projects

    In other unix environments using soft links ("ln -s") is a handy way of "abstracting away" at the file system level what a file or directory actually contains, so that its contents can be easily changed without having to modify the original file or directory. In other words, if I have eg. three versions of the same file, and several projects share the usage of one of those files, I can easily change which version of the file those projects will use by simply making a softlink that points to the file I want, and make those projects depend on that softlink (they see it as a regular file). If I later want to change the file in question, I only need to change the softlink to point to another version of the file.
    This is especially useful when dealing with a third-party library that gets regular updates. I can install the third-party library somewhere, with the version number of the library in the directory name, and have a more generic directory name as a softlink (as a concrete example, I could have a softlink named "cocos2d" pointing to a directory named "cocos2d-iphone-0.99.5"). If I update the library, I can install it in a new directory (eg. "cocos2d-iphone-1.0.1") and simply change the softlink to point to the new directory, and then recompile the projects that depend on it.
    The problem is that Xcode doesn't like softlinks. I don't know if this is a feature of MacOS X in general, or a quirk in Xcode in particular. The problem is that Xcode doesn't want any softlinks in any of its paths, and instead always resolves where the softlink is really pointing to. Thus if I add, for example, the file "libraries/cocos2d/cocos2d-ios.xcodeproj" to the project, what ends up in the project is actually a reference to "libraries/cocos2d-iphone-0.99.5/cocos2d-ios.xcodeproj". Thus the whole softlink is circumvented, making it useless. If I update the library in question, I have to go through all the projects that use it and change the references to point to the new directory. This causes only needless extra work.
    This resolving of softlinks only happens when adding a new file to the xcode project. Xcode doesn't seem to change them afterwards, if they already exist in the project. In the past I could get around this problem by editing the project file directly with a text editor and forcing the path to refer to the softlink. However, all the paths in xcode 4 projects seem to be obfuscated, making this impossible. Another possibility is to rename the directory in question with the name of the softlink, then add it to the project, then restore its original name and then add the soft link.
    Is there any better way of doing this?

    Hello I have probably exact same problem with source files whereas a constant location (my softlink) points to different version of the sources in a repository. For example:
    ../MyProject/DependantProjetXyz could point to
    ../Repository/DependantProjectXyz/V1.0
    ../Repository/DependantProjectXyz/V1.1
    My xcode project is setup with ../MyProject/DependantProjetXyz which is pretty useful as I don't need to update all the include and lib path everytime I update the dependancies.
    The main problem I am facing is that if I have a compilation error in the dependancies, xcode isn't able to automatically bring me to the error. It simply open the file and position at the very first line in the file. No highlight.
    I am forced to use contextual menu on the error then reveal in the log to find the line number and manually navigate to that line. In other words, I am almost back to good old command line compilation with separate text editor...
    BTW, this was all working fine before upgrade to xcode 4.
    Was a bug filed on this issue?

  • After updating to ML and Xcode 4.5.1, can't compile anything

    Hi, hoping someone here will be able to give me a clue.
    I used to compile a unix program called ffmpeg and about 12 dependencies.  It is somewhat complex, but I have a script for updating the programs.  When Lion came out I had to make some minor changes, including specifying --cc=clang in the ffmpeg configure step.  Now with Mountain Lion and Xcode 4.5.1 I can't compile anything.
    Rather than downloading and installing the command-line tools, which I understand just duplicate what is in Xcode, I added /Applications/Xcode.app/Contents/Developer/usr/bin to my path so that any configuration script would be able to get to the tools.
    Nothing is compiling at all.  Basically the compiler fails some tests in the scripts.  Each program gives different error messages, but it all looks like the compiler is wrong.
    Strangely, when I investigated the compilers in the above directory, I found that gcc (I guess the default) is an alias to llvm-gcc-4.2, in another folder.  But when I just type gcc in a terminal, I get:
    i686-apple-darwin11-llvm-gcc-4.2: no input files
    So it is actually using a different compiler for reasons I don't understand, and I don't know if that is correct behavior, or if it is related to my inability to compile.
    In case it is not obvious, I am just knowledgeable enough to be dangerous with this stuff.
    Thanks,
    Jim

    Gee, you mean you can't believe everything you read on the internet?? ;-)
    Well you're right.  After installing the tools, all the programs appeared to compile fine . . . except ffmpeg.  The terminal response at the end is
    gcc is unable to create an executable file.
    If gcc is a cross-compiler, use the --enable-cross-compile option.
    Only do this if you know what cross compiling means.
    C compiler test failed.
    The config.log starts with the configure command:
    ./configure --prefix=/Volumes/Ramdisk/sw --enable-nonfree --enable-gpl --enable-version3 --arch=x86_64 --enable-hardcoded-tables --enable-libvo-aacenc --enable-libmp3lame --enable-libx264 --enable-libvorbis --enable-libgsm --enable-avfilter --enable-filters --enable-libtheora --enable-libspeex --disable-indevs --disable-outdevs --disable-ffserver --disable-network
    And ends with:
    check_ld cc
    check_cc
    BEGIN /var/folders/sy/2d072p1s4sdc95lpnwp6s3jh0000gn/T//ffconf.huTMXBG3.c
        1          int main(void){ return 0; }
    END /var/folders/sy/2d072p1s4sdc95lpnwp6s3jh0000gn/T//ffconf.huTMXBG3.c
    gcc -I/Volumes/Ramdisk/sw/include
    -c -o /var/folders/sy/2d072p1s4sdc95lpnwp6s3jh0000gn/T//ffconf.ZC6xNAgf.o /var/folders/sy/2d072p1s4sdc95lpnwp6s3jh0000gn/T//ffconf.huTMXBG3.c
    i686-apple-darwin11-llvm-gcc-4.2: \n: No such file or directory
    C compiler test failed.
    Any idea what's wrong now?  The compiler still seems to be wrong for this program.  This is the program for which in the past, I had to add --cc=clang - but now if I do that it just says "clang is unable . . ." instead of "gcc is unable . . ."
    The next to last line in the config.log has me puzzled though - a newline tripping it up?

  • Illustrator CS4 SDK on Apple OSX 10.6 Snowleopard and Xcode 3.2 howto

    I can't compile any of the samplecode from the current illustrator CS4 SDK
    ai_cs4_sdk_mac_367 on an Apple Mac with OSX 10.6 snow leopard (SL) and Xcode 3.2
    (see some errormessages at end)
    The documentation mentions Xcode 2.4.1.
    Is it possible at all to use this SDK 367 with snowleopard and Xcode 3.2 ?
    If not, then how do you plug-in writers update your illustrator plug-ins for working on Snowleopard ?
    thx, j.
    some of the errors I get while compiling the 'Tutorial' samplecode for "10.6|Debug|i386" are :
    ../../illustratorapi/illustrator/AIRaster.h:221: error: conflicting declaration 'typedef long unsigned int uint32'
    /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Security.framework/Headers/cssmco nfig.h:69: error: 'uint32' has a previous declaration as 'typedef uint32_t uint32'
    AIPlatformFileDlgOpts::AIPlatformFileDlgOpts()
    ../../illustratorapi/illustrator/AIUser.h:381: error: extra qualification 'AIPlatformFileDlgOpts::' on member 'AIPlatformFileDlgOpts'
    /Applications/ai_cs4_sdk_mac_367/Adobe Illustrator CS4 SDK/samplecode/Tutorial/Resources/Tutorial.r:20:0 SysError 0 during open of "TutorialID.h".

    thanks mrwren, for your confirmation that you could compile the
    samples from ai_cs4_sdk_mac_367. I searched further and found e.g. the following fixes:
    sample: Tutorial
    1. AIRaster.h
    below #define BRAVO_TYPES:
    //typedef unsigned long uint32;//loj outcommented
    2. AIUser.h
    /*AIPlatformFileDlgOpts:: loj commented out*/ AIPlatformFileDlgOpts()
    : fCount(0), fFilters(NULL)
    3. TutorialID.h
    add the file Tutorial.h to the Groups&Files section of the Tutorial.xcodeproj window
    by dragging it from the finder into this Groups&Files section
    (The right click > "Add > Existing Files … " did not let me do this (file was gray although rwx-access))
    I compiled for "10.6 | release | i386" and the resulting plug-in Tutorial.aip
    did load well into AI CS4 14.0.0 and worked OK.
    sample: Annotator:
    changed project settings
    -Architectures > Base SDK : "/Developers/SDKs/MacOSX10.4u.sdk" changed to "Mac OSX 10.6"
    (I installed snowleopard without the optional 10.4 support)
    -Deployment > Mac OSX target : 10.4 changed to "Mac OSX 10.6"

  • Why with last update of mevericks usb ports and xcode not works ?

    yesterday i install the last update of maverick and now i cant use the time machine, usb key and xcode
    do you have a solution for that ?

    Just waking this thread up again in case anyone has had any other ideas.
    Since last posting, usb became functional again, (came back on a couple of hours after a restart) and as long as I kept the machine alive, usb would stay alive. Bluetooth came back on briefly, but for most of the time was unavailable. System profiler shows no problems and Console does not report any usb related errors as far as I can see.
    After a recent restart, usb disappeared again, and despite numerous restarts and being left on for a couple of days (and subsequently left off for several days) it has not come back. When usb is not working, examining the system profiler (through screen sharing from my macbook) usb shows no errors, but also shows no connected devices. I can charge my ipod nano with any of the usb ports (front or back), so power does not seem to be the issue.
    I can't reset pRAM (because the keyboard is not available at boot), but have reset SMC numerous times. Have tried other keyboards, and mice. No joy.
    I seem to have run out of ideas. Any suggestions?

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

  • How do I use Qt and OpenGL with Visual Studio

    Hi! I mainly want to program in C++ and I want to use Qt and OpenGL with Visual Studio.
    I am currently revising C++ and later on i am going to start reading Qt and OpenGL. I have a background of
    Embedded firmware design(C and Assembly).
    The Visual Studio Version I have is 2013 ultimate. How do I use Qt and OpenGL with Visual Studio?
    Thanks
    Alexandros

    Hi ClassicalGuitar,
    The forum supports VS setup and installation. And your issue is not about the forum. I will move the thread to off-topic forum. Thanks for your understanding.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • TS3999 I had an icloud account setup in 2009 when I first got my family members each a mac. I let that account expire(we never used it) and I don't know how to get it off of my ical. It is not recognizing any of the information to reset the password?

    I had an icloud account in 2009. We set it up as a family plan because my family had just changed from PC to Mac. We never used it and let the plan expire in 2010. My ical will not sync with my new iphone because it is linked to the family plan account that no longer exist. Because I don't remember my password, I tried resetting it. It says the personal information I entered is incorrect, but I know the information is correct...It's my birthday it asks for! Does anyone know how to get that account off of my mac without the account existing?

    You were a MobileMe (not iCloud) subscriber in 2009 and this service has been terminated. However the login is an Apple ID and this never expires. What is your operating system? Do you have a MobileMe icon in System Preferences? - if so you should be able to sign out in it, but you may not have an iCloud icon to let you create an iCloud account, though you can do so if your iPhone has iOS 5 or above.
    If you are getting login requests or other irritations from your MobileMe account you can go to (user)/Library/Preferences/ByHost and delete all .plist files beginning with com.apple.DotMac or com.apple.idisk, then reboot.
    The minimum requirement for iCloud to let you sync your data is 10.7.5 though you can sync through iTunes (except with Mavericks).

  • Can I use classes and methods for a maintenance view events?

    Hello experts,
    Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!

    Hi viraylab,
    1. The architecture provided by maintenance view
       for using EVENTS and our own code inside it -
       It is provided using FORM/PERFORM
       concept only.
    2. At this stage,we cannot use classes.
    3. However, inside the FORM routine,
       we can write what ever we want.
       We can aswell use any abap code, including
       classes and methods.
      (But this classes and methods won't have any
       effect on the EVENT provided by maintenance view)
    regards,
    amit m.

  • Error while accessing a library using content and structure

    I have a library having document and folder inside it. When I open the library using content and structure I get an error with a correlation ID. When checked the the logs with Correlation ID got an error message "View 'All Document' does not exist."
    'All Document' is name of default view on the library.
    When I open the library from view all site content the library is being opened.
    Please help!!!

    Hello Victoria,
    Thanks for  the response.
    I have tried troubleshooting steps given by you. 
    Check if the issue occurs with other users. Use another user to access the library in Content and Structure and then compare the results. --
    I tried with different users but no luck
    Make sure that the user account with issue has permission to view the All Documents view of the library. --
    Yes, user Account have the permission
    Check if the issue occurs with other libraries in the Content and Structure. If not, I recommend to save the library as
    a template including contents and then create a new library based on this template. After that use the new library instead of the old library. --
    No other library have this problem. I cannot save the library as template including the contents as the it has many folders and  files. The current size of library is 786 MB
    Clear cache in the browser or use another browser to see if the issue still occurs. --
    tries but issue persists.
    Best regards,
    Ratnesh

  • How do I install windows 7 on a macbook pro mid 2009 using bootcamp and no optical drive?

    How do I install windows 7 on a macbook pro mid 2009 using bootcamp and no optical drive?
    My optical drive is non-functional and I want to dual boot with win7. The only problem is my macbook does not boot from USB at all, even when I hold th ALT key down when it is starting up.
         -I have a flashdrive with win7 on it.
         -I mounted the ISO of win7 with toast for bootcamp to do its thing.

    Good luck.
    Consider this a bump so that hopefully someone with better news spots your thread.
    Allan

  • Using iPhoto and editing with Photoshop Elements 4

    Hello
    I am new to Macs after many years using PC and I am struggling to set up my photo workflow. I shoot in RAW format and input into iPhoto from iPhoto I double click on the photo and which opens the RAW editor in Photoshop Elements. After making changes I open the file in Photoshop and then save as a TIFF.
    My problem is I do not see the changed and saved file in iPhoto and if I double click on the photo again it opens back up in the RAW editor not as a TIFF.
    Can any one point me in the right direction to solve this or is what I am trying to do not possible
    Thanks
    Grant

    Grant
    Welcome to the Apple Discussions.
    What you're trying to do is not possible.
    When you save as a TIFF you create a whole new file that needs to be imported into iPhoto anew. iPhoto will track an edit as long as you stay with the same file - so, edit your jpeg in PSE and use the 'Save' command and the change is reflected in iPhoto. However, you cannot Save RAW files, it's always a Save As... and so the resulting file has to be imported.
    Regards
    TD

Maybe you are looking for

  • Pdf export range indesign cc 2014

    I saw that there are several threads dealing with that problem with the drop down menu saying CUSTOM V. usualy people can type in there, the problem is that what ever i type in that little box (for example: 3-7) indesign gives me the following error:

  • Open commandLink in new window/tab

    I have an ADF app with a link to an Apex reports site. The af:commandLink calls a procedure which does some internal validation (calls a pl/sql package to get an Apex login token) then redirects the browser to the Apex site. I'd like to get that Apex

  • Live streaming just stopped

    The server is up and running, the VOD items work fine. The server recognizes the streaming application when I output to the server, but we cannot view the stream. ? This was working fine and all of a sudden, nothing. Any ideas?

  • I realize that wave burner is no longer part of Logic. Does anyone know of a viable option? thanks.

    I realize that wave burner is no longer part of Logic. Does anyone know of a viable option? thanks.

  • Migration questions 7.6 to 7.7

    Hi, we are at the moment in the process of upgrading to a bigger database server. Currently our Databases are running on maxdb 7.6.05.09 and as this version is not actual any more there will be need to update. First Question: For non SAP-Installation