static linkage problem

This is a discussion on static linkage problem within the C++ Programming forums, part of the General Programming Boards category; I am trying to statically link via an obj file. The compiler warns of redefinitions of windows functions, pointing out ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,701

    static linkage problem

    I am trying to statically link via an obj file. The compiler warns of redefinitions of windows functions, pointing out that they are present in the project's .bss(assembly?) file as well as in the obj file I am linking to. How might I resolve this conflict?
    Code:
    bool flip(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() < 0;
    }

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    What compiler is this?

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,701
    Bloodshed Dev C++. I am trying to do away with writing dll's, and would like to be able to have a user simply link to a lib file, basically.
    Code:
    bool flip(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. uploading file to http server via multipart form data
    By Dynamo in forum C++ Programming
    Replies: 1
    Last Post: 09-03-2008, 04:36 AM
  2. internal/external linkage
    By MarkZWEERS in forum C++ Programming
    Replies: 1
    Last Post: 07-29-2008, 03:34 AM
  3. Using private class members in static functions
    By sethjackson in forum C++ Programming
    Replies: 2
    Last Post: 09-23-2005, 09:54 AM
  4. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 06:48 PM
  5. non static WndProc problem
    By aker_y3k in forum C++ Programming
    Replies: 14
    Last Post: 10-03-2002, 02:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21