Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:42:10+00:00 2026-05-31T05:42:10+00:00

The Code window.h typedef struct { WNDCLASS* wc; HWND hwnd; WNDPROC proc; } PRO_Window;

  • 0

The Code

window.h

typedef struct
{
    WNDCLASS* wc;
    HWND hwnd;
    WNDPROC proc;
} PRO_Window;

PRO_Window* PRO_WindowCreate(int width, int height, const char* title);

window.c
I don’t think this is important though…

PRO_Window* PRO_WindowCreate(int width, int height, const char* title) { /* code */ }

main.c

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR CmdLine, int nCmdShow)
{
    PRO_Window* win = PRO_WindowCreate( 300, 300, "STATIC");
    return 0;
}

The Error

GCC

main.o:main.c|| undefined reference to `PRO_WindowCreate(int, int, char const*)'|

* Reduced it to SSCCE
* I am using the windows api

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:42:11+00:00Added an answer on May 31, 2026 at 5:42 am

    The error with Boarland-C compiler seems to be because of the declaration of wc after the wnd->proc = NULL;. Try to move declaration above initialization statement…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

/*language C code*/ #include windows.h typedef struct object_s { SRWLOCK lock; int data; }
Here is the code I have: #include <iostream> #include <typeinfo.h> typedef struct A {
How does the following code remove window borders? //note the struct is declared elsewhere,
I have a code: #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> typedef struct
typedef struct contact { char firstname [40]; char lastname [40]; char address [100]; char
This code works if the 7th line down says typedef char ItemType but instead
The JavaScript code window.print() can print the current HTML page. If I have a
Consider the code: window.a = function(x){ var r = x*2; window.a =alert; // redefines
Consider the following code: $(window).unload(function () { console.log('foo'); }); If I trigger the unload
Is there a standard set of return code for Window shell scripts (*.bat files)?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.