RALEIGH, N.C. (AP) - President Barack Obama formally declared a state of emergency in North Carolina to allow federal aid to help local responses with problems stemming from Hurricane Matthew.

LIVE: #StormTrack2 View of Hurricane Matthew

Oceanfront towns ordered visitors to leave and the governor warned of the potential for "life-threatening" rain as the North Carolina coast awaited Hurricane Matthew as it pounded the southeastern U.S. coast.

READ: NC Coastal Shelters, Evacuations, And Emergency Information

Coastal locations made final preparations on Friday as the president signed the emergency declaration for our state. Previous declarations were made for Florida, Georgia and South Carolina.

READ: WFMY News 2 In Oak Island Tracking Hurricane Matthew

Gov. Pat McCrory warned of the possibility for the worst flooding in the state since Hurricane Floyd inundated eastern North Carolina in 1999.

Carolina Beach issued a mandatory evacuation order for visitors and non-residents, and considered a curfew if the bridge into the town was buffeted by winds in excess of 45 mph.

Brunswick County, its six beach towns and the city of Southport had already declared states of emergency.

MORE: What Happens When Two Hurricanes Collide?