[SOLVED] mingw32 cross compile won't link with static libraries

Hi all,
I'm trying to cross compile an app I have written to i486-mingw32.  I'm running Arch 64-bit (under which it compiles fine natively), and I have installed the mingw32 binaries along with mingw32-boost-static from AUR.
All seems well, but unfortunately when I cross compile my code libtool refuses to link to the static Boost libraries:
*** Warning: Trying to link with static lib archive /usr/i486-mingw32/lib/libboost_filesystem-mt-s.a.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not use here.
This then leads to undefined references as the library is not linked in.  But as I *want* the static version of the library, does anyone know how to tell libtool to accept the .a file and link it?
Last edited by Malvineous (2011-05-02 02:44:48)

Just to follow up on this, I discovered the problem.  It turns out libtool was doing the correct thing, and refusing to link the static library in with the shared one (otherwise later this could result in something being defined multiple times.)  The undefined references were unrelated to the error above, and the code that was causing them (in a different Boost header file) could be easily #defined out.
When the time came to link the actual executables, libtool did include all the necessary libraries and everything worked as it should!

Similar Messages

  • Seperate include directory for i486-mingw32 cross-compiler toolchain

    I've installed the mingw32 cross-compiler. I noticed that when using this compiler, a seperate, non-standard include directory is used. So instead of copying all of the dependencies headers to compile the software, is there an easier way of including both directories?
    Thanks.

    I've installed the mingw32 cross-compiler. I noticed that when using this compiler, a seperate, non-standard include directory is used. So instead of copying all of the dependencies headers to compile the software, is there an easier way of including both directories?
    Thanks.

  • My itunes won't link with my apple tv

    my itunes won't link with my apple tv, I've tried shutting down my modem and router and all devices, I've unplugged the power, I've reset with menu and down button....what else works? Have had the ATV2 working since june 2011, problem started with in last 2 months.

    I'm having the same problem. I have reset the Apple TV, reconfigured homesharing on both the Apple TV and iTunes, and all the other stuff described above. One other bit I can add is that my iPhone will connect to the Apple TV, it's just the Mac that won't. As with kwillie, I've had this Apple TV 2 working with my 2008 Aluminum MacBook for quite some time. The Apple TV is recognizing the computer and can play music from it via homesharing, but the computer can't AirPlay back to the Apple TV. Very strange.

  • Contact Card won't link with facebook.

    I recently downloaded the update for the Incredible 2. Before the update My contact card was linked with my facebook account and i had my facebook picture adn other info. Now it's no longer linked and i don't know how to fix it  help please!

    Do you have information about the model no. of original purchase that is printed on the back cover ?
    What is model no. of the replacement iPhone 5 ?
    If T-mobile SIM worked on the original purchase and does not work on the replacement iPhone 5, they gave you a wrong model.

  • Runtime error in linking with static variables....

    Hi,
    I am building a shared library which includes a compiled object generated from a class containing the static variables only and also I have another version of same class with same & some new static variables in it and using that to generate another shared library. Now when I tried to run a program
    which links with both the library it core dumps when it tries to return from the program i.e when it finishes.
    Can someone please help me explain why my program is behaving like that?? Can duplicate inculsion of static variables in different scope can cause problem ?? How can this be avoided ?
    Also please be advised that the class with static variables gets generated at the compile time using a script which uses a DTD whose version (specification) can be different in both the libraries therefore I can't just seperate the common stuff into one class and specific into another.
    Thanks.
    Rajeev.

    Not to worry...found the answer in another post. Seems like patches need to applied to the OS.

  • Extending DPS reader with static libraries and frameworks

    Is there any initiative within Adobe's roadmap to enable extending DPS reader within Xcode by use of static libraries and frameworks?
    Core functionality of the reader could be linked and distributed as binary assembly via static libraries.
    Shared resources of the DPS reader could be packaged wtihin a framework.
    Beyond extending capabilities of the reader, this would also enable advanced debugging and running on devices directly from Xcode.
    References:
    Using Static Libraries in iOS
    Framework Programming Guide
    iOS Frameworks

    Now that the .folio format has been opened up, are there any updates with regards to providing developers access to reader frameworks/libraries?
    Adobe .folio Format Specification
    In addition to the new feature updates, the technical specification for the .folio format is now available under a free license; further accelerating digital publication adoption and enabling newsstands to produce their own viewing apps capable of displaying digital content built using DPS. All entities who sign the license agreement will be given access to the specification.

  • Z30 won't link with blackberry link

    I have reinstalled blackberry link several time now, each time it will link up the Z30, but a few days later my Z30 will connect to the computor but Blackberry link doesn't connect. This is not the only issue but I can't fix any of the others if Link won't be consistant in hooking up each and every time. any suggestions

    Same problem here...has been for a week.
    Been on the phone with Blackberry 3 times....
    I have tried everything, literally everything....
    it shouldn't be that difficult....
    That red circle avatar...means problem with my BB....

  • (SOLVED) K8N SLI Platinum won't post with Saphire 5750

    Hi everyone. Hope you all had a nice Xmas. 
    This is my first post on the forums.  I’m  from Portugal ,so I might write things that won’t make much sense to you but I´ll try to keep it simple.
    I bought a Sapphire 5750 vapor-X for my kid's PC and I’m afraid I’m yet another one with the “black screen, no post” syndrome. I have tried the card on another system and it works fine.
    What I did:
    Remove old card (6800GT)
    Put new card in
    Reset  CMOS
    Switch PC on… no image on screen.
    The fan on the graphics card starts spinning, the blue lights are ON, but no dice. My HDD LED stays on, my CD+DVD drives LEDs keep flashing  but system  won’t  post, not  even show MSI logo.
    If I remove new card and get my old one back in the PC, it will post first time.
    I have spent Xmas reading forums and haven’t found anything but a lot of ppl with the same problem and no real solution for it.
    Hope you guys can help .

    MSI forum:
    Quote
    Yup,I think I have the same issue with you,man.But I have solved it as I flash the latest beta bios V192.Contact MSI Online OCSS to get the BIOS to solve your issue...   
    https://forum-en.msi.com/index.php?topic=131546.0
     1 thread hinting a board cant support Gen2 cards:
     Quote
      Comments:
    Nov 18, 2009- BTW, I do not even get to BIOS screen at all. All is black as if no card is plugged in.
    Nov 19, 2009- After a few hours of search the result is:
    Some ASRock boards do not support GEN2 video cards (such as Radeon HD 5770).
    Only solution found: New motherboard.
      http://www.fixya.com/support/t3235972-asrock_wolfdale1333_d667_radeon_5770     
    AMD forum
    Quote
      If i remember right 1.0 is x8 and 1.1 is x16 and i far as i know it will never work as this issue go's back 2 years when the 8800GT hit the market and it would not work on PCI Express 1.0 but it would on 1.1
    http://forums.amd.com/game/messageview.cfm?catid=260&threadid=124445&enterthread=y
    driver heaven:
    Quote
       Warning about the HD5770 well at least on my computer the XFX HD5770 + a PCIe 1.0 slot = doesn't work. Again this was on my computer. I have another computer that it ran on fine using a PCIe 2.0 slot (Asrock 780g board), but my MSI K9A Platinum would not power that card. So you may need to replace your motherboard if it uses a PCIe 1.0 slot.  
       http://www.driverheaven.net/ati-graphic-cards/191317-5770-performance-increase.html#ixzz2jP3dOQ9e  
    allover ppl are having problems with 5xxx series on older systems.
    i know some comments, solutions and explanations are closer to witchcraft than anything else but where there is smoke.....

  • [SOLVED]Ruby on Rails won't run with apache/passenger

    Hi I want to run Redmine, a Ruby on Rails application, on a personal server using MariaDB as the database and Apache with the Phusion Passenger module as the application platform. So far I am able to run Redmine with the default WeBrick server, but if I try to run it via Apache (http://192.168.1.5/redmine) I just get the directory index of  /usr/share/webapps/redmine. I've been running various php webapps using this apache installation without issues but my unfamiliarity with Ruby on Rails makes me unsure how to fix this. If I create a Ruby on Rails test  application as described at https://wiki.archlinux.org/index.php/Ru … figuration I get the same issue.
    Using the arch wiki articles on Ruby on Rails and Redmine, This is basically how I installed things:
    $ yaourt -S ruby1.9 rubygems1.9 nodejs redmine
    # gem-1.9 install rails
    # gem-1.9 install passenger
    /opt/ruby-1-9/ and subfolders ended up having no read/exexute permissions for 'other', probably because of my umask settings, so I changed the permissions, also because apache runs as user/group 'apache'.
    Ran the script that installs the passenger apache module:
    # /opt/ruby1.9/bin/passenger-install-apache2-module
    added to httpd.conf:
    LoadModule passenger_module /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
    PassengerRoot /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5
    PassengerDefaultRuby /opt/ruby1.9/bin/ruby
    ServerName arch-server
    DocumentRoot /usr/share/webapps
    <Directory "/usr/share/webapps">
    # This relaxes Apache security settings.
    AllowOverride all
    Order allow,deny
    Allow from all
    # MultiViews must be turned off.
    Options -MultiViews
    </Directory>
    I checked if the passenger module is loaded, and judging from /var/log/httpd/error_log that seems the case:
    [ 2013-07-03 22:52:22.8947 28902/b7407700 agents/Watchdog/Main.cpp:440 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => '/opt/ruby1.9/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_pid' => '28901', 'web_server_type' => 'apache', 'web_server_worker_gid' => '1001', 'web_server_worker_uid' => '1006' }
    [ 2013-07-03 22:52:22.9120 28905/b73bd700 agents/HelperAgent/Main.cpp:555 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.28901/generation-0/request
    [ 2013-07-03 22:52:22.9262 28902/b7407700 agents/Watchdog/Main.cpp:564 ]: All Phusion Passenger agents started!
    [ 2013-07-03 22:52:22.9266 28910/b71dd700 agents/LoggingAgent/Main.cpp:271 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.28901/generation-0/logging
    [Wed Jul 03 22:52:22 2013] [notice] Apache/2.2.24 (Unix) PHP/5.4.16 mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 Phusion_Passenger/4.0.5 configured -- resuming normal operations
    'apachectl configtest' gives 'Syntax OK'.
    I followed the wiki on redmine (https://wiki.archlinux.org/index.php/Redmine), chose to use "bundle install" to install the required gems with only a 'production' environment. What worried me is that those gems are now in /root/.gems while the webserver runs as user 'apache'.
    I can run Redmine at 192.168.1.5:3000 without errors using:
    # ruby script/rails server webrick -e production
    But if I kill it and try via apache http://192.168.1.5/redmine I get a directory content listing.
    Last edited by rwd (2013-07-04 21:00:10)

    Thanks markocz, my use of sub-url was indeed the problem. With help from the linked article I did the following:
    # mkdir /usr/share/webapps/phusion-passenger/
    # ln -s /usr/share/webapps/redmine/public /usr/share/webapps/phusion-passenger/redmine
    # chown -R root:http /usr/share/webapps/
    # chmod -R g+rx /usr/share/webapps/
    httpd.conf now looks like this:
    LoadModule passenger_module /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
    PassengerRoot /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5
    PassengerDefaultRuby /opt/ruby1.9/bin/ruby
    ServerName arch-server
    DocumentRoot /usr/share/webapps/phusion-passenger
    <Directory "/usr/share/webapps/phusion-passenger">
    # This relaxes Apache security settings.
    AllowOverride all
    Order allow,deny
    Allow from all
    # MultiViews must be turned off.
    Options +FollowSymLinks
    </Directory>
    RailsBaseURI /redmine
    <Directory "/usr/share/webapps/phusion-passenger/redmine">
    Options -MultiViews
    </Directory>
    Redmine now works via passenger.
    Last edited by rwd (2013-07-04 20:59:40)

  • My iPad won't link with my iphone

    HHi when I go to link my txt mags up with my iPad no code comes up on my ipad?

    Without an App, Bluetooth between an iPhone and and an iPad can only be used for tethering a hotspot connection.
    What are you trying to do?

  • 8900 won't link with Outlook 2010

    I am very upset that my Blackberry 8900 will not sync  with my new computer that has  Outlook 2010 and I am told by RIM that you don’t know when it will.  It is making me reconsider whether to get another blackberry (I have 4 in use on my account) when my TMobile contract expires.  It is a pain for me not to be able to sync my calendar or back up new data I load into my PDA. And I worry that if I lose or damage my device,  I will lose data that isn’t backed up.
    Harold  

    Support for Outlook 2010 will be out in just another week or two.  RIM has made official statements about it coming in August.  August 10 is the date that is being rumored.  It's almost here.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • ITunes won't link with my phone

    Updated my iPhone 4. It doesn't have a pass code but when I plug it into my mac it says it can't connect because it is locked with a pass code!?

    Hi Ken,
    Dennis here from westport. I too am a goldmine user for many years and would love to know how you sync.
    I am looking at a product called wmobile, but may be problematic on my current system.
    thanks for any help...

  • Tablet won't connect with static LAN IP address

    Today I updated my Xperia tablet (model SGP311) to Android 4.4.2 (kernel version 3.4.0-perf-g32ce454).
    My tablet no longer connects to my home wi-fi network if I assign it a static LAN IP address. It connects fine if I use DHCP. But I prefer to assign my devices static IP addresses when possible.
    I have tried forgetting and re-connecting to my LAN several times without success. The static IP address worked fine until today's update.
    Any ideas?

    sunnhausl wrote:
    I tried that already, too! New development...I have the same problem in my office now. So, clearly, it is a problem with my iTouch. It recognizes the networks, won't connect, and when I go into look at the network, there is not data (IP address, etc.) It's just blank. HELP!
    You could try restoring the S/W on your iPod Touch. If that doesn't work you may need to talk to Apple about repair.

  • Create a Template Editable Region Link with static "label"?

    Hello.
    Does anybody know how to create a simple, basic link on my template (just the word "LINK" will do) . . . . and put an Editable Field *behind* the "LINK" . . . so I can change the link destination link on each child page?
    So, in the particular child page, the visitor clicks on "LINK" . . . then goes to a specific destination URL just for that child page?
    Thanks.

    Chamuel333 wrote: Nadia . . . I have *attached* a screen shot of the error message I receive to this post (I figured that will eliminate the risk of me screwing-up a description of exactly what it says . . . and wasting your time).
    And, lastly, here is the exact code causing that error message:
    <!-- TemplateBeginEditable name="change-link" --><a href="http://annapolis-resume.com/Links.html" class="style7">Links</a><!-- TemplateEndEditable -->
    Thank you so much for your help with my beginner question!
    Jim
    That's pretty much the code I suppied originally and then removed thinking you'd prefer blus' method, which isn't all that hard to do by the way.
    The error message is saying that the template markup is sitting insite a block element, something like a paragraph, which is a block element,  for example.
    <!-- TemplateBeginEditable name="change-link" --><a href="http://annapolis-resume.com/Links.html" class="style7">Links</a><!-- TemplateEndEditable --></p>
    If so, move the template markup outside of the <p> attribute like so:
    <!-- TemplateBeginEditable name="change-link" --><p><a href="http://annapolis-resume.com/Links.html" class="style7">Links</a></p><!-- TemplateEndEditable -->
    This will make the paragraph editable.
    If that's not the problem, and you don't have the link inside a paragraph, then post a bit of code that surrounds that template markup that you have.  Better yet, if you can post a link to the page maybe even better  (if you can upload it to a server).

  • Creative Cloud won't sync with my Libraries

    I'v reinstalled the latest Creative Cloud desktop app, and updated to the latest version of Photoshop CC 2014 - but I cannot get Creative Cloud to show me any of my assets (libraries) on the website.
    To troubleshoot in Creative Cloud preferences :
    1. I made sure Sync was on, and
    2. I tested the folder location for files. It was my User folder which seems to be default, and I tested it by changing it to the Creative Cloud folder nested inside User folder, but no change.
    I'm on Adobe Creative Cloud 1.9.0.465
    And Running Mac OS 10.9.5

    Hi,
    Can you send me your log files please?. You can find them in the following locations:
    Mac:
    /Users/<username>/Library/Application Support/Adobe/CoreSync
    Windows:
    C:\Users\<username>\AppData\Roaming\Adobe\CoreSync
    'Library' on Mac and 'AppData' on Windows are both hidden folders. Please read these pages for help on showing these folders:
    http://helpx.adobe.com/x-productkb/global/show-hidden-files-folders-extensions.html (Win)
    https://helpx.adobe.com/x-productkb/global/access-hidden-user-library-files.html (Mac)
    Please send upload them to Creative Cloud and send me a link at [email protected]
    Also you can check out these links for tips:
    -https://forums.adobe.com/community/creative_cloud/host_sync
    -http://helpx.adobe.com/creative-cloud/help/sync-settings.html
    -http://helpx.adobe.com/creative-cloud/kb/arent-my-files-syncing.html
    -Size Limits https://forums.adobe.com/thread/1488242
    -sync and email link http://forums.adobe.com/thread/1427516?tstart=0
    -Phantom folder problem https://forums.adobe.com/thread/1490445
    Error: "Unable to sync files"

Maybe you are looking for