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 4052106
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:16:42+00:00 2026-05-20T14:16:42+00:00

I am trying to compile the following program in windows but I get an

  • 0

I am trying to compile the following program in windows but I get an error which I do not understand. I have added the correct libraries and header files, yet I get this error. I am using this lcc win32 compiler.

#include <stdio.h>
#include <ctype.h>
#include "genlib.h"
#include "stack.h"

int main()
{
    stackADT operandStack;
    operandStack = NewStack();

    return 0;
}

stack.obj .text: undefined reference to '_GetBlock'
stack.obj .text: undefined reference to '_FreeBlock'
stack.obj .text: undefined reference to '_Error'

Any help appreciated,

Ted

  • 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-20T14:16:43+00:00Added an answer on May 20, 2026 at 2:16 pm

    These are not compiler errors but linker errors. You need to link your program with the library or obj files that contain GetBlock() etc.

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

Sidebar

Related Questions

I'm trying to compile this C++ program which utilizes the GLUT32 libraries. Right now
I am trying to compile libgpg-error-1.10 on Windows 7 64 bit OS but I
I'm trying to compile the following simple DL library example code from Program-Library-HOWTO with
I am trying to compile the following code and i am getting the error:
I'm trying to compile some code which contains the following declaration, because I would
I'm trying to compile a third-party library, but g++ is complaining about the following
When trying to compile a file that include winnt.h via windows.h, I get the
When trying to compile my class I get an error: The constant 'NamespaceName.ClassName.CONST_NAME' cannot
I'm getting the following error when trying to compile OpenSSL 1.0, 64 bit: ias
I'm trying to use NetBeans to compile C code and have the following versions

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.