Error C2491 ?

This is a discussion on Error C2491 ? within the C++ Programming forums, part of the General Programming Boards category; Error line: Code: AP_DECLARE_DATA module vhost_dbi_module = {STANDARD20_MODULE_STUFF,NULL,NULL,vhost_dbi_create_server_config,NULL,vhost_dbi_commands,register_hooks}; C2491 when trying to compile. What's wrong, how do I fix this?...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Question Error C2491 ?

    Error line:
    Code:
    AP_DECLARE_DATA module vhost_dbi_module = {STANDARD20_MODULE_STUFF,NULL,NULL,vhost_dbi_create_server_config,NULL,vhost_dbi_commands,register_hooks};
    C2491 when trying to compile. What's wrong, how do I fix this?

  2. #2
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    What is the text of the error?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    3
    Code:
    mod_vhost_dbi.c(501) : error C2491: 'vhost_dbi_module' : definition of dllimport data not allowed 
    apxs:Error: Command failed with rc=131072
    This?

  4. #4
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Go to the apachelounge forums, as they are probably better suited to help you.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    3
    Well, I did, no answers :/

    I have read infos about C2491 but still don't know how to fix this..

Popular pages Recent additions subscribe to a feed

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