Ticket #10 (closed bug: Invalid)

Opened 12 years ago

Last modified 43 years ago

undefined reference to `Main_main_closur

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: 5.02
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Prelude> :! ghc -o nuevo c:\windows\desktop\Comp.hs
C:/GHC/libHSstd.a(PrelMain__1.o)
(.text+0x16)://c/tmp/ghc1756.hc: undefined refer
ence to `__stginit_Main'
C:/GHC/libHSstd.a(PrelMain__2.o)
(.text+0x4)://c/tmp/ghc1756.hc: undefined refere
nce to `Main_main_closure'
C:/GHC/libHSstd.a(PrelMain__2.o)
(.text+0x33)://c/tmp/ghc1756.hc: undefined refer
ence to `Main_main_closure'

Change History

Changed 12 years ago by simonmar

Logged In: YES 
user_id=48280

we'll need more info to follow this one up.  Is the module 
you're trying to compile actually the Main module?  Could 
you post the source for the module?

Changed 12 years ago by nobody

Logged In: NO 

module Teste where

comp x = 2*pi*x

Changed 12 years ago by simonmar

  • status changed from assigned to closed
Logged In: YES 
user_id=48280

This is not a bug.  You attempted to link a program which 
doesn't contain a Main module, and hence the linker can't 
find Main.

Note: See TracTickets for help on using tickets.